DOSXPTRS.H 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. /* The following section helps us with far pointers for the 32-bit
  16. * DOS extenders. Some of the compilers do not support far pointers,
  17. * so we set up a generic far pointer that all compilers can
  18. * use.
  19. */
  20. #if defined( DOSX386 )
  21. #if defined( GF_WATCOM_C_386 )
  22. /*
  23. * Pharlap and Watcom are both trying to define FP_OFF. I get a redef
  24. * error when I include DOS.H *after* pharlap.h. So I do a preemptive
  25. * include here to avoid that problem.
  26. */
  27. #include <dos.h>
  28. #if !defined( _M_IX86 )
  29. #define _M_IX86 0
  30. #endif
  31. #endif
  32. #include <pharlap.h>
  33. #define GF_FARPTR FARPTR
  34. #define GF_FP_OFF FP_OFF
  35. #define GF_FP_SEL FP_SEL
  36. #define GF_REALPTR REALPTR
  37. extern unsigned short _flat_code_sel;
  38. extern unsigned short _flat_data_sel;
  39. extern unsigned short _flat_dos_sel;
  40. extern unsigned short _flat_vid_sel;
  41. void GF_CONV _SetTNTConfigInfo( void );
  42. #else
  43. #define GF_FARPTR void GF_FAR *
  44. #define GF_REALPTR unsigned long
  45. #define GF_MK_FP MK_FP
  46. #endif
  47. #endif