home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 8 Other / 08-Other.zip / mandsteg.zip / ext.h < prev    next >
C/C++ Source or Header  |  1999-01-17  |  434b  |  28 lines

  1.  
  2. #ifndef TRUE
  3. #define TRUE    1
  4. #define FALSE    0
  5. #endif
  6.  
  7. typedef    unsigned char    byte;
  8. typedef    short        int16;
  9. typedef long        int32;
  10. typedef unsigned short    word;
  11. typedef unsigned long    lword;
  12.  
  13. #ifdef DOS
  14. #define random()    rand()
  15. #define srandom(s)    srand(s)
  16. #endif
  17.  
  18. #ifdef SYSV
  19. #define random()    lrand48()
  20. #define srandom(s)    srand48(s)
  21. #endif
  22.  
  23. #ifdef __IBMC__
  24. #define random() rand()
  25. #define srandom(s) srand(s)
  26. #endif
  27.  
  28.