home *** CD-ROM | disk | FTP | other *** search
/ Amiga ACS 1998 #6 / amigaacscoverdisc1998-061998.iso / games / descent / source / lib / dosxptrs.h < prev    next >
C/C++ Source or Header  |  1998-06-08  |  2KB  |  60 lines

  1. /*
  2. THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
  3. SOFTWARE CORPORATION ("PARALLAX").  PARALLAX, IN DISTRIBUTING THE CODE TO
  4. END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
  5. ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
  6. IN USING, DISPLAYING,  AND CREATING DERIVATIVE WORKS THEREOF, SO LONG AS
  7. SUCH USE, DISPLAY OR CREATION IS FOR NON-COMMERCIAL, ROYALTY OR REVENUE
  8. FREE PURPOSES.  IN NO EVENT SHALL THE END-USER USE THE COMPUTER CODE
  9. CONTAINED HEREIN FOR REVENUE-BEARING PURPOSES.  THE END-USER UNDERSTANDS
  10. AND AGREES TO THE TERMS HEREIN AND ACCEPTS THE SAME BY USE OF THIS FILE.  
  11. COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION.  ALL RIGHTS RESERVED.
  12. */
  13. #ifndef _DOSXPTRS_DOT_H
  14. #define _DOSXPTRS_DOT_H
  15.  
  16. /* The following section helps us with far pointers for the 32-bit
  17.  * DOS extenders.  Some of the compilers do not support far pointers,
  18.  * so we set up a generic far pointer that all compilers can
  19.  * use.
  20.  */
  21.  
  22. #if defined( DOSX386 )
  23.  
  24. #if defined( GF_WATCOM_C_386 )
  25. /*
  26.  * Pharlap and Watcom are both trying to define FP_OFF.  I get a redef
  27.  * error when I include DOS.H *after* pharlap.h.  So I do a preemptive
  28.  * include here to avoid that problem.
  29.  */
  30. #include <dos.h>
  31. #if !defined( _M_IX86 )
  32. #define _M_IX86 0
  33. #endif
  34. #endif
  35.  
  36. #include <pharlap.h>
  37.  
  38. #define GF_FARPTR       FARPTR
  39. #define GF_FP_OFF       FP_OFF
  40. #define GF_FP_SEL       FP_SEL
  41.  
  42. #define GF_REALPTR      REALPTR
  43.  
  44. extern unsigned short _flat_code_sel;
  45. extern unsigned short _flat_data_sel;
  46. extern unsigned short _flat_dos_sel;
  47. extern unsigned short _flat_vid_sel;
  48. void GF_CONV _SetTNTConfigInfo( void );
  49.  
  50. #else
  51.  
  52. #define GF_FARPTR       void GF_FAR *
  53. #define GF_REALPTR      unsigned long
  54.  
  55. #define GF_MK_FP        MK_FP
  56.  
  57. #endif
  58.  
  59. #endif
  60.