home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / GNUFIX.ZIP / OS2DEF.DIF < prev    next >
Text File  |  1992-08-03  |  841b  |  33 lines

  1. 36,41c36,59
  2. < #define APIENTRY    _System
  3. < #define EXPENTRY    _System
  4. < #define APIENTRY16  _Far16 _Pascal
  5. < #define PASCAL16    _Far16 _Pascal
  6. < #define CDECL16     _Far16 _Cdecl
  7. ---
  8. >     /*
  9. >     ** This is required to use the GNU C/C++ compilers
  10. >     */
  11. > #if defined(__GNUG__) || defined(__GNUC__)
  12. > #define APIENTRY
  13. > #define EXPENTRY
  14. > #define APIENTRY16
  15. > #define PASCAL16
  16. > #define CDECL16
  17. > #define _Seg16
  18. > #define _Far16
  19. > #define    _Optlink
  20. > #define    _Builtin
  21. > #define APIENTRY_FUNC(f,a) f##a asm(#f)
  22. > #define EXPENTRY_FUNC(f,a) f##a asm(#f)
  23. > #else
  24. > #define APIENTRY _System
  25. > #define EXPENTRY _System
  26. > #define APIENTRY16 _Far16 _Pascal
  27. > #define PASCAL16 _Far16 _Pascal
  28. > #define CDECL16 _Far16 _Cdecl
  29. > #define APIENTRY_FUNC(f,a) _System f##a
  30. > #define EXPENTRY_FUNC(f,a) _System f##a
  31. > #endif
  32.