home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C / Libraries / stdwin / H / stdwconf.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-04-06  |  846 b   |  35 lines  |  [TEXT/????]

  1. /* "stdwconf.h" -- mess with predefined symbols.
  2.    This file is supposed to be portable between all OSes.
  3.    It is also reentrant.
  4. */
  5.    
  6. /* MPW defines "macintosh"; THINK C defines "THINK_C".
  7.    Some portable code tests for "macintosh" to detect any Mac implementation;
  8.    the distinction between MPW and THINK C is made by checking for
  9.    "MPW" or "THINK_C".
  10. */
  11.  
  12. /* If "macintosh" defined but not "THINK_C", it must be MPW */
  13. /* XXX (I hope I remember this right -- I haven't used MPW for years) */
  14. #ifdef macintosh
  15. #ifndef THINK_C
  16. #define MPW
  17. #endif
  18. #endif
  19.  
  20. /* Under THINK C, turn on "macintosh" if not already on */
  21. #ifdef THINK_C
  22. #ifndef macintosh
  23. #define macintosh
  24. #endif
  25. #if THINK_C < 5
  26. #define THINK_C_PRE_5_0
  27. #endif
  28. #endif
  29.  
  30. /* For Think C 3.0, you must manually define THINK_C and THINK_C_3_0 */
  31.  
  32. #ifdef _AIX
  33. #define HAVE_STDLIB
  34. #endif
  35.