daeWin32Platform.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * Copyright 2006 Sony Computer Entertainment Inc.
  3. *
  4. * Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this
  5. * file except in compliance with the License. You may obtain a copy of the License at:
  6. * http://research.scea.com/scea_shared_source_license.html
  7. *
  8. * Unless required by applicable law or agreed to in writing, software distributed under the License
  9. * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
  10. * implied. See the License for the specific language governing permissions and limitations under the
  11. * License.
  12. */
  13. #ifndef __DAE_WIN32_PLATFORM_H__
  14. #define __DAE_WIN32_PLATFORM_H__
  15. #define PLATFORM_INT8 __int8
  16. #define PLATFORM_INT16 __int16
  17. #define PLATFORM_INT32 __int32
  18. #define PLATFORM_INT64 __int64
  19. #define PLATFORM_UINT8 unsigned __int8
  20. #define PLATFORM_UINT16 unsigned __int16
  21. #define PLATFORM_UINT32 unsigned __int32
  22. #define PLATFORM_UINT64 unsigned __int64
  23. #define PLATFORM_FLOAT32 float
  24. #define PLATFORM_FLOAT64 double
  25. #if _MSC_VER <= 1200
  26. typedef int intptr_t;
  27. #endif
  28. #ifdef DOM_DYNAMIC
  29. #ifdef DOM_EXPORT
  30. #define DLLSPEC __declspec( dllexport )
  31. #else
  32. #define DLLSPEC __declspec( dllimport )
  33. #endif
  34. #else
  35. #define DLLSPEC
  36. #endif
  37. // GCC doesn't understand "#pragma warning"
  38. #ifdef _MSC_VER
  39. // class 'std::auto_ptr<_Ty>' needs to have dll-interface to be used by clients of class 'daeErrorHandler'
  40. #pragma warning(disable: 4251)
  41. // warning C4100: 'profile' : unreferenced formal parameter
  42. #pragma warning(disable: 4100)
  43. // warning C4355: 'this' : used in base member initializer list
  44. #pragma warning(disable: 4355)
  45. // warning C4512: 'daeDatabase' : assignment operator could not be generated
  46. #pragma warning(disable: 4512)
  47. // warning LNK4099: Missing pdb file for PCRE
  48. #pragma warning(disable: 4099)
  49. #endif
  50. #endif