dstd.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. //---------------------------------------------------------------------------
  2. //
  3. // dstd.h - This file contains the standard definitions
  4. //
  5. //
  6. //---------------------------------------------------------------------------//
  7. // Copyright (C) Microsoft Corporation. All rights reserved. //
  8. //===========================================================================//
  9. #ifndef DSTD_H
  10. #define DSTD_H
  11. //---------------------------------------------------------------------------
  12. // Include files
  13. //---------------------------------------------------------------------------
  14. // Type Definitions
  15. typedef unsigned char* MemoryPtr;
  16. typedef unsigned char byte;
  17. typedef unsigned size_t;
  18. #ifndef NULL
  19. #define NULL 0
  20. #endif
  21. #ifndef TRUE
  22. #define TRUE 1
  23. #endif
  24. #ifndef FALSE
  25. #define FALSE 0
  26. #endif
  27. #define RADS_TO_DEGREES 57.2957795132f // Used to convert results in Rad to Deg
  28. #define DEGREES_TO_RADS 0.0174532925199f // Used to convert results in Deg to Rad
  29. #define COS_SIN_45 0.70710678f // Used to convert results in Deg to Rad
  30. #define PI 3.1415926535897932384626433832795
  31. typedef unsigned long DWORD;
  32. typedef unsigned int UINT;
  33. typedef unsigned char BYTE;
  34. typedef void *PVOID;
  35. //--------------------------------------------------------------------------
  36. // Macro Definitions
  37. #define NONE -1
  38. //--------------------------------------------------------------------------
  39. // Pragmas
  40. #pragma warning(disable:4244)
  41. #pragma warning(disable:4514) // Unused Inline Functions
  42. #pragma warning(disable:4800)
  43. #pragma warning(disable:4244)
  44. //---------------------------------------------------------------------------
  45. #endif
  46. //---------------------------------------------------------------------------
  47. //
  48. // Edit Log
  49. //
  50. //
  51. //---------------------------------------------------------------------------