home *** CD-ROM | disk | FTP | other *** search
/ modiromppu / modiromppu.iso / PROGRAMS / ORGPACKS / MPG12304.ZIP / MTYPES.H < prev    next >
C/C++ Source or Header  |  1995-12-02  |  2KB  |  74 lines

  1. #ifndef MTYPES_H
  2. #define MTYPES_H
  3.  
  4. /*
  5.     MikMod atomic types:
  6.     ====================
  7. */
  8.  
  9.  
  10. #ifdef __OS2__
  11.  
  12. typedef signed char     SBYTE;          /* has to be 1 byte signed */
  13. typedef unsigned char   UBYTE;          /* has to be 1 byte unsigned */
  14. typedef short           SWORD;          /* has to be 2 bytes signed */
  15. typedef unsigned short  UWORD;          /* has to be 2 bytes unsigned */
  16. typedef long            SLONG;          /* has to be 4 bytes signed */
  17. /* ULONG and BOOL are already defined in OS2.H */
  18.  
  19. #elif defined(__alpha)
  20.  
  21. typedef char            SBYTE;          /* has to be 1 byte signed */
  22. typedef unsigned char   UBYTE;          /* has to be 1 byte unsigned */
  23. typedef short           SWORD;          /* has to be 2 bytes signed */
  24. typedef unsigned short  UWORD;          /* has to be 2 bytes unsigned */
  25. /* long is 8 bytes on dec alpha - RCA */
  26. typedef int             SLONG;          /* has to be 4 bytes signed */
  27. typedef unsigned int    ULONG;          /* has to be 4 bytes unsigned */
  28. typedef int             BOOL;           /* doesn't matter.. 0=FALSE, <>0 true */
  29.  
  30. #else
  31.  
  32. typedef char            SBYTE;          /* has to be 1 byte signed */
  33. typedef unsigned char   UBYTE;          /* has to be 1 byte unsigned */
  34. typedef short           SWORD;          /* has to be 2 bytes signed */
  35. typedef unsigned short  UWORD;          /* has to be 2 bytes unsigned */
  36. typedef long            SLONG;          /* has to be 4 bytes signed */
  37. typedef unsigned long   ULONG;          /* has to be 4 bytes unsigned */
  38. typedef int             BOOL;           /* doesn't matter.. 0=FALSE, <>0 true */
  39.  
  40. #endif
  41.  
  42.  
  43. #ifdef __OS2__
  44. #define INCL_DOS
  45. #define INCL_MCIOS2
  46. #define INCL_MMIOOS2
  47. #include <os2.h>
  48. #include <os2me.h>
  49. #include <mmio.h>
  50. #endif
  51.  
  52.  
  53. #ifdef __WATCOMC__
  54. #define inportb(x) inp(x)
  55. #define outportb(x,y) outp(x,y)
  56. #define inport(x) inpw(x)
  57. #define outport(x,y) outpw(x,y)
  58. #define disable() _disable()
  59. #define enable() _enable()
  60. #endif
  61.  
  62.  
  63. #ifdef __DJGPP__
  64. #include <dpmi.h>
  65. #include <go32.h>
  66. #include <pc.h>
  67. #define inp inportw
  68. #define outport outportw
  69. #define inport inportw
  70. #define interrupt 
  71. #endif
  72.  
  73. #endif
  74.