C preprocessor: undefined control

hamilton at osiris.cso.uiuc.edu hamilton at osiris.cso.uiuc.edu
Wed Mar 22 09:27:00 AEST 1989


dan at rna says:

>  ... The 4.3BSD complains about the #pragma, even though it should be
> excluded entirely since the #ifdef MSDOS is not satisfied:
> 
> #ifdef MSDOS
> 	... C code ...
> #pragma loop_opt(off)
> 	while(...)
> 	...
> #endif
> 
> ... Is there any way around this ? (I know I could write the C code
> such that the #pragma isn't necessary... that's not an answer).

i'd probably but the #ifdef'd C code into a seperate file, and say:

	#ifdef MSDOS
	#include msdos.c
	#endif

	wayne hamilton
	U of Il and US Army Corps of Engineers CERL
UUCP:	{convex,uunet}!uiucuxc!osiris!hamilton
ARPA:	hamilton at osiris.cso.uiuc.edu	USMail:	Box 476, Urbana, IL 61801
CSNET:	hamilton%osiris at uiuc.csnet	Phone:	(217)333-8703



More information about the Comp.lang.c mailing list