Date: Mon, 2 Mar 1998 18:05:43 -0800 (PST) Message-Id: <199803030205.SAA00946@adit.ap.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: jmillawa AT nimbus DOT ocis DOT temple DOT edu (John Millaway), djgpp AT delorie DOT com From: Nate Eldredge Subject: Re: Is there an OS-specific #defined symbol? Precedence: bulk At 08:01 3/2/1998 GMT, John Millaway wrote: >Real quick question: >Is there a #defined symbol which will tell me "Hey, you are on windows NT"? AFAIK, no. > >Reason I think that I need it: >I have a project with lots of files, mostly being worked on under unix. >Part of the work, my part, will be done under NT. >Many of the files are not in the 8.3 DOS format expected by make under NT. >If I could detect NT or even DJGPP, I could say (for example): You can detect DJGPP with: #ifdef __DJGPP__ > >#if defined _WIN_NT_ >#include "Longfilename.blah.cpp" >#else >#include "Longfi~3.bla" >#endif If you're using DJGPP tools to do this, you should know that long file names currently don't work under Windows NT, so you may not have a problem after all. > >I know this is a very awkward workaround, but at this point, it's better >than trying to reorganize the whole project around 8.3 filenames. If >there's a much better workaround, I'd LOVE to hear it. Not at present, unfortunately. Nate Eldredge eldredge AT ap DOT net