home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / graphics / audio / midiplyr / global.h < prev    next >
C/C++ Source or Header  |  1997-10-05  |  1KB  |  48 lines

  1. /*****************************************************************************
  2. *
  3. *  THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
  4. *  ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED
  5. *  TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR
  6. *  A PARTICULAR PURPOSE.
  7. *
  8. *  Copyright (C) 1993 - 1997 Microsoft Corporation. All Rights Reserved.
  9. *
  10. ******************************************************************************
  11. *
  12. * Global.H
  13. *
  14. * #define's everybody needs
  15. *
  16. *****************************************************************************/
  17.  
  18. #ifndef _GLOBAL_
  19. #define _GLOBAL_
  20.  
  21. #ifndef _WIN32
  22. #define  BCODE                  __based(__segname("_CODE"))
  23. #define  BSTACK                 __based(__segname("_STACK"))
  24. #define  BSEG(x)                __based(__segname(x))
  25. #define  HUGE                   __huge
  26. #else
  27. #define  BCODE
  28. #define  BSTACK
  29. #define  BSEG(x)
  30. #define  HUGE
  31. #endif
  32.  
  33. /* Allow visibility of static functions for debug
  34. */ 
  35. #ifdef DEBUG
  36. #define  PUBLIC
  37. #define  PRIVATE
  38. #else
  39. #define  PUBLIC                 
  40. #define  PRIVATE                static
  41. #endif
  42.  
  43. #define  FNLOCAL                NEAR PASCAL
  44. #define  FNGLOBAL               FAR PASCAL
  45. #define  FNEXPORT               FAR PASCAL __export __loadds
  46.  
  47. #endif
  48.