www.delorie.com/djgpp/faq/dev-probs/djgpp-specific.html   search  
I must put a DJGPP-specific code fragment into my program. What symbol should I use in the #ifdef directive to make it only visible under DJGPP?

Use __GO32__, like this:

  #ifdef __GO32__
  ... DJGPP-specific code ...
  #else
  ....
  #endif
Note that in djgpp V2, there will be an extra symbol __DJGPP__ that will initially be set to 2. There will also be a __DJGPP_MINOR__ that will initially be set to 0.

  webmaster     delorie software   privacy  
  Copyright © 1995     Updated Feb 1995