Mail Archives: djgpp/1998/03/02/21:06:12
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
- Raw text -