Skip to content

Commit a3f3775

Browse files
committed
Add missing includes and include file if compiling with COLOR defined.
File rawcolordefs.h was completely missing. Both llcolordefs.h and rawcolordefs.h must be included in subr.c if -DCOLOR Make newColorizeFont8() local to rawcolor.c
1 parent d2d4f18 commit a3f3775

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

inc/rawcolordefs.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#ifndef RAWCOLORDEFS_H
2+
#define RAWCOLORDEFS_H 1
3+
#include "lispemul.h" /* for LispPTR */
4+
void C_slowbltchar(LispPTR *args);
5+
LispPTR Colorize_Bitmap(LispPTR args[]);
6+
void Draw_8BppColorLine(LispPTR *args);
7+
void Uncolorize_Bitmap(LispPTR args[]);
8+
#endif

src/rawcolor.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ static void ColorizeFont8_BIGBM(BITMAP *sBM, DLword sXOffset, DLword sYOffset, B
419419
/* */
420420
/************************************************************************/
421421

422-
void newColorizeFont8(PILOTBBT *pbt, u_char backcolor, u_char forecolor, LispPTR srctype, LispPTR ope)
422+
static void newColorizeFont8(PILOTBBT *pbt, u_char backcolor, u_char forecolor, LispPTR srctype, LispPTR ope)
423423
{
424424
DLword *nbase;
425425
u_char *dbase;

src/subr.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@
6464
#include "uutilsdefs.h" // for suspend_lisp, check_unix_password, unix_fu...
6565
#include "vmemsavedefs.h" // for lisp_finish, vmem_save0
6666

67+
#ifdef COLOR
68+
#include "rawcolordefs.h"
69+
#include "llcolordefs.h"
70+
#endif
71+
6772
extern LispPTR *PENDINGINTERRUPT68k;
6873

6974
/***********************************************************/

0 commit comments

Comments
 (0)