File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ CFLAGS1 = -Os -Wall -Werror -Wno-pointer-to-int-cast -Wno-incompatible-pointer-t
2727.SUFFIXES : .c .asm .com .exe .obj
2828ifeq ($(UTILS_BUILD ) ,1)
2929.c.exe :
30- gcc -x c -Og -g -Wall -DGCC -D__GETOPT_H -I../suppl $< -o $@
30+ gcc -x c -Og -g -Wall -DTARGET_USE_GCC_IA16 -D__GETOPT_H -I../suppl $< -o $@
3131else ifeq ($(COMPACT_MODEL),1)
3232.c.obj .c.exe :
3333 @echo ------------------------------------------------------
Original file line number Diff line number Diff line change @@ -230,7 +230,7 @@ int main(int argc, char **argv)
230230 }
231231
232232 if (argc == 2
233- #ifndef GCC
233+ #ifndef TARGET_USE_GCC_IA16
234234 || ival .heapPos == ~0
235235#endif
236236 ) {
@@ -275,7 +275,7 @@ int main(int argc, char **argv)
275275 , argv [1 ], tosize );
276276 /* Watcom already has extraMin minimal and dynamically adjusts its MCB*/
277277 if (tosize ) {
278- #ifdef GCC
278+ #ifdef TARGET_USE_GCC_IA16
279279 /* need to adjust SP */
280280 unsigned startbss = 0x10000 - exe .extraMax * 16 ;
281281 exe .fSP = startbss + ival .extraSpace * 16 + tosize ;
@@ -293,7 +293,7 @@ int main(int argc, char **argv)
293293 return 77 ;
294294 }
295295
296- #ifndef GCC
296+ #ifndef TARGET_USE_GCC_IA16
297297 if (fseek (freecom , ival .heapPos , SEEK_SET ) != 0 ) {
298298 printf ("Failed to seek to heap size offset in %s\n" , argv [1 ]);
299299 return 42 ;
Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ int addImageDisplacement(const char * const fnam
130130 * extraSpace += (stacksize + 15 )/16 ;
131131 }
132132 fclose (f );
133- #ifdef GCC
133+ #ifdef TARGET_USE_GCC_IA16
134134 stacksize = 4 * 1024 ;
135135 * extraSpace += stacksize / 16 ;
136136#else
You can’t perform that action at this time.
0 commit comments