home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / Sample Code / Contributed / SpriteWorld / SpriteWorld Files / BlitPixie / Headers / BlitPixieSystem.h < prev    next >
Encoding:
Text File  |  2000-10-06  |  1.2 KB  |  53 lines  |  [TEXT/CWIE]

  1. //    Platform-dependant definitions for BlitPixie
  2.  
  3. #if defined(macintosh)        
  4. ///--------------------------------------------------------------------------------------
  5. //    Mac OS
  6.  
  7. #include <ConditionalMacros.h>
  8. #include <Types.h>
  9.  
  10. #if CGLUESUPPORTED
  11. #define BLITPIXIE_DEBUGGER(str)    debugstr( str )
  12. #else
  13. #include <TextUtils.h>
  14. #define BLITPIXIE_DEBUGGER(str)    DebugStr( C2PStr(str) )
  15. #endif
  16.  
  17. #elif defined(WIN32)        
  18. ///--------------------------------------------------------------------------------------
  19. //    Windows 9X, NT
  20.  
  21. #include <WINDEF.H>
  22. #include <WINDOWS.H>
  23.  
  24. typedef RECT            Rect;
  25. typedef BOOL            Boolean;
  26. #define true            TRUE
  27. #define false            FALSE
  28.  
  29. #define BLITPIXIE_DEBUGGER(str)    (void) MessageBox( (HWND) NULL, str, "Debugger", MB_OK )
  30.  
  31. #else                        
  32. ///--------------------------------------------------------------------------------------
  33. //     Other (ANSI C) 
  34.  
  35. #include <stdlib.h>
  36. #include <stdio.h>
  37.  
  38. struct Rect                
  39. {
  40.     int        left,top,bottom,right;
  41. };
  42.  
  43. typedef struct Rect        Rect;
  44. typedef unsigned char    Boolean;
  45. #define true            1
  46. #define false            0
  47.  
  48. #define BLITPIXIE_DEBUGGER(str)    (void) fputs( str, stderr )
  49.  
  50. ///--------------------------------------------------------------------------------------
  51. #endif
  52.  
  53.