home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / lxapi32.zip / Include / ldefos2.h < prev    next >
C/C++ Source or Header  |  2002-04-22  |  2KB  |  86 lines

  1. /*
  2.  * ldefos2.h
  3.  * Autor:               Stefan Milcke
  4.  * Erstellt am:         05.11.2001
  5.  * Letzte Aenderung am: 15.12.2001
  6.  *
  7. */
  8. #ifndef __LDEFOS2_H__
  9. #define __LDEFOS2_H__
  10.  
  11. #define MAX_GDTSELECTORS   10 // Must match MAX_GDTSELECTORS in startup.asm
  12.  
  13. #define FAR48 __far
  14. #ifndef FAR
  15. #define FAR   __far
  16. #endif
  17.  
  18. #ifndef TARGET_OS216
  19.  
  20. #ifdef DEBUG
  21. #ifdef __cplusplus
  22. extern "C" {
  23. #endif
  24. void _cdecl DPE(char *x, ...) ; /* not debugging: nothing */
  25. void _cdecl DPD(int level, char *x, ...) ; /* not debugging: nothing */
  26. #ifdef __cplusplus
  27. }
  28. #endif
  29. #define dprintf(a)    DPE a
  30. #define DebugInt3()    _asm int 3;
  31. #else
  32. #define dprintf(a)
  33. #define DebugInt3()
  34. #endif
  35.  
  36. #ifdef USEPRINTK
  37. #define PRINTTK(x) (printk(x))
  38. #else
  39. #define PRINTTK(x) (printk(x))
  40. #endif
  41.  
  42. #ifdef LINUX
  43. #define NEAR __near
  44.  
  45. typedef unsigned long ULONG;
  46. typedef unsigned long *PULONG;
  47. typedef unsigned short USHORT;
  48. typedef unsigned short *PUSHORT;
  49. typedef signed long LONG;
  50. typedef signed short SHORT;
  51. typedef signed short *PSHORT;
  52. typedef unsigned long BOOL;
  53. typedef ULONG FARPTR16;
  54. typedef char NEAR *LINEAR;
  55. typedef unsigned long APIRET;
  56. typedef void VOID;
  57. typedef void *PVOID;
  58. typedef signed int INT;
  59. typedef unsigned char UCHAR;
  60. typedef signed char CHAR;
  61. typedef CHAR *PCHAR;
  62. typedef __int64 QWORD;
  63. typedef ULONG HFILE;
  64.  
  65. #define APIENTRY    _System
  66.  
  67. #endif
  68.  
  69. #define __cpu_to_le32(x) ((__u32)(x))
  70. #define cpu_to_le32 __cpu_to_le32
  71.  
  72. #ifdef __cplusplus
  73. extern "C" {
  74. #endif
  75. #ifndef WORD32
  76. typedef unsigned long WORD32;
  77. #endif
  78. extern WORD32 GDTSelectors32;
  79. #ifdef __cplusplus
  80. }
  81. #endif
  82.  
  83. #endif //TARGET_OS216
  84.  
  85. #endif
  86.