home *** CD-ROM | disk | FTP | other *** search
/ System Booster / System Booster.iso / Archives / GNU / GNUPLOTsrc.lha / ansichek.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-01-22  |  931 b   |  45 lines

  1. /*
  2.  * $Id: ansichek.h,v 1.8 1995/05/11 11:59:40 drd Exp $
  3.  *
  4.  */
  5.  
  6. /* figure out if we can handle ANSI prototypes */
  7.  
  8. #ifndef ANSI_CHECK
  9. #define ANSI_CHECK
  10.  
  11. #ifndef AUTOCONF
  12. /* configure already tested the ANSI feature */
  13.  
  14. #ifdef __STDC__
  15. #if __STDC__
  16. #define ANSI_C
  17. #endif
  18. #endif
  19.  
  20. #if defined(__TURBOC__) || defined (__PUREC__) || defined (__ZTC__) || defined (_MSC_VER) || (defined(OSK) && defined(_ANSI_EXT))
  21. #define ANSI_C
  22. #endif
  23.  
  24. #endif /* AUTOCONF */
  25.  
  26. /* if the system header files use the __P prototype convention (e.g. Linux),
  27.    we just include stdio, since this will define __P correctly */
  28.  
  29. #ifndef PROTOTYPE__P
  30. #ifdef ANSI_C
  31. #define __P(proto) proto
  32. #else
  33. #define __P(proto) ()
  34. #endif
  35. #else
  36. #include <stdio.h>
  37. #endif
  38.  
  39. /* generic pointer type. For old compilers this has to be changed to char *,
  40.    but I don't know if there are any CC's that support void and not void * */
  41.  
  42. #define generic void
  43.  
  44. #endif /* ANSI_CHECK */
  45.