Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!csd4.milw.wisc.edu!uxc!uxc.cso.uiuc.edu!uxd.cso.uiuc.edu!osiris.cso.uiuc.edu!hamilton From: hamilton@osiris.cso.uiuc.edu Newsgroups: comp.lang.c Subject: Re: C preprocessor: undefined control Message-ID: <1239500005@osiris.cso.uiuc.edu> Date: 21 Mar 89 23:27:00 GMT References: <435@rna.UUCP> Lines: 27 Nf-ID: #R:rna.UUCP:435:osiris.cso.uiuc.edu:1239500005:000:718 Nf-From: osiris.cso.uiuc.edu!hamilton Mar 21 17:27:00 1989 dan@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@osiris.cso.uiuc.edu USMail: Box 476, Urbana, IL 61801 CSNET: hamilton%osiris@uiuc.csnet Phone: (217)333-8703