daeWin32Platform.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. * Copyright 2006 Sony Computer Entertainment Inc.
  3. *
  4. * Licensed under the MIT Open Source License, for details please see license.txt or the website
  5. * http://www.opensource.org/licenses/mit-license.php
  6. *
  7. */
  8. #ifndef __DAE_WIN32_PLATFORM_H__
  9. #define __DAE_WIN32_PLATFORM_H__
  10. #define PLATFORM_INT8 __int8
  11. #define PLATFORM_INT16 __int16
  12. #define PLATFORM_INT32 __int32
  13. #define PLATFORM_INT64 __int64
  14. #define PLATFORM_UINT8 unsigned __int8
  15. #define PLATFORM_UINT16 unsigned __int16
  16. #define PLATFORM_UINT32 unsigned __int32
  17. #define PLATFORM_UINT64 unsigned __int64
  18. #define PLATFORM_FLOAT32 float
  19. #define PLATFORM_FLOAT64 double
  20. #if _MSC_VER <= 1200
  21. typedef int intptr_t;
  22. #endif
  23. #ifdef DOM_DYNAMIC
  24. #ifdef DOM_EXPORT
  25. #define DLLSPEC __declspec( dllexport )
  26. #else
  27. #define DLLSPEC __declspec( dllimport )
  28. #endif
  29. #else
  30. #define DLLSPEC
  31. #endif
  32. // GCC doesn't understand "#pragma warning"
  33. #ifdef _MSC_VER
  34. // class 'std::auto_ptr<_Ty>' needs to have dll-interface to be used by clients of class 'daeErrorHandler'
  35. #pragma warning(disable: 4251)
  36. // warning C4100: 'profile' : unreferenced formal parameter
  37. #pragma warning(disable: 4100)
  38. // warning C4355: 'this' : used in base member initializer list
  39. #pragma warning(disable: 4355)
  40. // warning C4512: 'daeDatabase' : assignment operator could not be generated
  41. #pragma warning(disable: 4512)
  42. // warning LNK4099: Missing pdb file for PCRE
  43. #pragma warning(disable: 4099)
  44. #endif
  45. #endif