home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / aspio02.zip / lib / defines.h
Text File  |  1999-05-09  |  1KB  |  51 lines

  1. /*
  2.  * $Source: r:/source/lib/RCS/defines.h,v $
  3.  * $Revision: 1.4 $
  4.  * $Date: 1999/05/09 23:17:23 $
  5.  * $Locker:  $
  6.  *
  7.  *    Nice shortcuts
  8.  *
  9.  * $Log: defines.h,v $
  10.  * Revision 1.4  1999/05/09 23:17:23  vitus
  11.  * - added MIN(), MAX()
  12.  *
  13.  * Revision 1.3  1998/10/30 01:27:57  vitus
  14.  * - UNREFERENCED() for non-EMX compilers, too (empty)
  15.  *
  16.  * Revision 1.2  1997/09/22 23:20:05  vitus
  17.  * define PRIVATE to empty string in non-debug versions
  18.  *
  19.  * Revision 1.1  1996/09/02 22:08:19  vitus
  20.  * Initial revision
  21.  */
  22.  
  23.  
  24. #if !defined(PRIVATE)
  25. # if !defined(NDEBUG)
  26. #  define PRIVATE
  27. #  define PUBLIC
  28. # else
  29. #  define PRIVATE    static
  30. #  define PUBLIC
  31. # endif
  32. #endif
  33.  
  34.  
  35. #if defined(__GNUC__)
  36. # define UNREFERENCED(var) static void *const use_##var = (&use_##var, &var, 0)
  37. # define USE_OS2_TOOLKIT_HEADERS
  38.  
  39. #else
  40. # define UNREFERENCED(var)
  41. #endif
  42.  
  43.  
  44. #if !defined(MIN)
  45. # define MIN(a,b)    ((a)>(b)?(b):(a))
  46. #endif
  47.  
  48. #if !defined(MAX)
  49. # define MAX(a,b)    ((a)>(b)?(a):(b))
  50. #endif
  51.