From: Oliver Schmidt Date: Mon, 17 Jun 2013 19:34:08 +0000 (+0200) Subject: Have __APPLE2ENH__ imply __APPLE2__ and __ATARIXL__ imply __ATARI__. X-Git-Tag: V2.15~265 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=83280e1ee2155eb1f08faba22ac320d417110094;p=cc65 Have __APPLE2ENH__ imply __APPLE2__ and __ATARIXL__ imply __ATARI__. --- diff --git a/asminc/stdio.inc b/asminc/stdio.inc index 835a204b1..18a7541e0 100644 --- a/asminc/stdio.inc +++ b/asminc/stdio.inc @@ -41,9 +41,9 @@ _IOLBF = 1 _IONBF = 2 BUFSIZ = 256 EOF = -1 -.if .defined(__APPLE2__) .or .defined(__APPLE2ENH__) +.if .defined(__APPLE2__) FILENAME_MAX = 64+1 -.elseif .defined(__ATARI__) .or .defined(__ATARIXL__) +.elseif .defined(__ATARI__) FILENAME_MAX = 12+1 .elseif .defined(__LUNIX__) FILENAME_MAX = 80+1 diff --git a/include/apple2.h b/include/apple2.h index 177159e46..190248b0d 100644 --- a/include/apple2.h +++ b/include/apple2.h @@ -37,7 +37,7 @@ /* Check for errors */ -#if !defined(__APPLE2__) && !defined(__APPLE2ENH__) +#if !defined(__APPLE2__) # error This module may only be used when compiling for the Apple ][! #endif @@ -142,7 +142,7 @@ extern unsigned char _filetype; /* Default 6 */ extern unsigned int _auxtype; /* Default 0 */ /* The addresses of the static drivers */ -#ifndef __APPLE2ENH__ +#if !defined(__APPLE2ENH__) extern void a2_auxmem_emd[]; extern void a2_stdjoy_joy[]; /* Referred to by joy_static_stddrv[] */ extern void a2_stdmou_mou[]; /* Referred to by mouse_static_stddrv[] */ diff --git a/include/atari.h b/include/atari.h index ca1f9299c..e47d1ccea 100644 --- a/include/atari.h +++ b/include/atari.h @@ -38,7 +38,7 @@ /* Check for errors */ -#if !defined(__ATARI__) && !defined(__ATARIXL__) +#if !defined(__ATARI__) # error This module may only be used when compiling for the Atari! #endif diff --git a/include/conio.h b/include/conio.h index 693e40035..cd6bf3651 100644 --- a/include/conio.h +++ b/include/conio.h @@ -59,11 +59,11 @@ #endif /* Include the correct machine-specific file */ -#if defined(__APPLE2__) -# include -#elif defined(__APPLE2ENH__) +#if defined(__APPLE2ENH__) # include -#elif defined(__ATARI__) || defined(__ATARIXL__) +#elif defined(__APPLE2__) +# include +#elif defined(__ATARI__) # include #elif defined(__ATMOS__) # include diff --git a/include/dirent.h b/include/dirent.h index d1d786419..b5e1be135 100644 --- a/include/dirent.h +++ b/include/dirent.h @@ -43,7 +43,7 @@ typedef struct DIR DIR; -#if defined(__APPLE2__) || defined(__APPLE2ENH__) +#if defined(__APPLE2__) struct dirent { char d_name[16]; @@ -78,7 +78,7 @@ struct dirent { #define _DE_ISLBL(t) (0) #define _DE_ISLNK(t) (0) -#elif defined(__ATARI__) || defined(__ATARIXL__) +#elif defined(__ATARI__) struct dirent { char d_name[13]; /* 8.3 + trailing 0 */ diff --git a/include/stdio.h b/include/stdio.h index b2c4fa67a..c2c735cb0 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -69,9 +69,9 @@ extern FILE* stderr; #define TMP_MAX 256 /* Standard defines that are platform dependent */ -#if defined(__APPLE2__) || defined(__APPLE2ENH__) +#if defined(__APPLE2__) # define FILENAME_MAX (64+1) -#elif defined(__ATARI__) || defined(__ATARIXL__) +#elif defined(__ATARI__) # define FILENAME_MAX (12+1) #elif defined(__LUNIX__) # define FILENAME_MAX (80+1) diff --git a/include/time.h b/include/time.h index 7ac69165b..507d7e29a 100644 --- a/include/time.h +++ b/include/time.h @@ -76,7 +76,7 @@ extern struct _timezone { -#if defined(__ATARI__) || defined(__ATARIXL__) +#if defined(__ATARI__) /* The clock depends on the video standard, so read it at runtime */ unsigned _clocks_per_sec (void); # define CLK_TCK _clocks_per_sec() diff --git a/libsrc/dbg/dbg.c b/libsrc/dbg/dbg.c index 68453be6f..34c686e09 100644 --- a/libsrc/dbg/dbg.c +++ b/libsrc/dbg/dbg.c @@ -63,7 +63,7 @@ static char GetKeyUpdate (void); # define COLOR_FRAMEHIGH COLOR_WHITE # define COLOR_FRAMELOW COLOR_GRAY3 # else -# if defined(__APPLE2__) || defined(__APPLE2ENH__) +# if defined(__APPLE2__) # define COLOR_BORDER COLOR_BLACK # define COLOR_BACKGROUND COLOR_BLACK # define COLOR_TEXTHIGH COLOR_BLACK @@ -93,7 +93,7 @@ static char GetKeyUpdate (void); # define MAX_X 80 # define MAX_Y 25 # define DUMP_BYTES 16 -#elif defined(__APPLE2__) || defined(__APPLE2ENH__) || defined(__ATARI__) || defined(__ATARIXL__) +#elif defined(__APPLE2__) || defined(__ATARI__) # define MAX_X 40 # define MAX_Y 24 # define DUMP_BYTES 8 diff --git a/samples/mandelbrot.c b/samples/mandelbrot.c index 6c58cea97..0ba4ebd2c 100644 --- a/samples/mandelbrot.c +++ b/samples/mandelbrot.c @@ -28,7 +28,7 @@ #define divfp(_a,_b) ((((signed long)_a)<