www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/02/15:18:04

From: jmillawa AT nimbus DOT ocis DOT temple DOT edu (John Millaway)
Newsgroups: comp.os.msdos.djgpp
Subject: Is there an OS-specific #defined symbol?
Date: 2 Mar 1998 20:01:03 GMT
Organization: Temple University, Academic Computer Services
Lines: 24
Message-ID: <6df35v$vao$1@cronkite.ocis.temple.edu>
NNTP-Posting-Host: nimbus.ocis.temple.edu
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Real quick question: 
Is there a #defined symbol which will tell me "Hey, you are on windows NT"?

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):

#if defined _WIN_NT_
#include "Longfilename.blah.cpp"
#else
#include "Longfi~3.bla"
#endif

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.
Thanks.

Please (cc) me a copy of your response, if possible.
-John
jmillawa AT nimbus DOT ocis DOT temple DOT edu

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019