home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / gnu / djgpp / contrib / dvx / inc / qdos.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-07-15  |  1.1 KB  |  46 lines

  1. #ifndef _QDOS_H_
  2. #define _QDOS_H_
  3.  
  4. #ifdef __NDPC__
  5. #include <os.h>
  6. #define __NO32FARPTR__
  7. #else /* __NDPC__ */
  8. #if defined(_MSC_VER) && (_M_IX86 >= 300)
  9. #include <pldos32.h> /* __MSC32__ gets defined in here */
  10. #define __NO32FARPTR__
  11. #else /* __MSC32__ */
  12. #include <dos.h>
  13. #endif /* __MSC32__ */
  14. #endif /* __NDPC__ */
  15.  
  16. #if defined(__ZTC__) && defined(DOS386)
  17.  #define INT86(a,b,c) int86_real(a,b,b)
  18. #else /* __ZTC__ */
  19.  #ifdef __WATCOMC__
  20.   #define INT86(a,b,c) int386(a,b,b)
  21.  #else /* __WATCOMC__ */
  22.   #ifdef __NDPC__
  23.    #define INT86(a,b,c) rm_int386(a,b,c)
  24.   #else /* __NDPC__ */
  25.    #ifdef __MSC32__
  26.     #define INT86(a,b,c) _int86(a,b,b)
  27.    #else /* __MSC32__ */
  28.     #define INT86(a,b,c) int86(a,b,b)
  29.    #endif /* __MSC32 */
  30.   #endif /* __NDPC__ */
  31.  #endif /* __WATCOMC__ */
  32. #endif /* __ZTC__ */
  33.  
  34. #if defined(__WATCOMC__) || defined(__NDPC__) || defined(__MSC32__) /* POHC 92/02/10 */
  35. #define REG16 w
  36. #else
  37. #define REG16 x
  38. #endif
  39.  
  40. #ifdef __MSC32__
  41. #define REGS _REGS
  42. #define SREGS _SREGS
  43. #else
  44. #endif /* __MSC32 */ 
  45.  
  46. #endif /* _QDOS_H_ */