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 9 #ifndef __DAE_WIN32_PLATFORM_H__ 10 #define __DAE_WIN32_PLATFORM_H__ 11 12 #define PLATFORM_INT8 __int8 13 #define PLATFORM_INT16 __int16 14 #define PLATFORM_INT32 __int32 15 #define PLATFORM_INT64 __int64 16 #define PLATFORM_UINT8 unsigned __int8 17 #define PLATFORM_UINT16 unsigned __int16 18 #define PLATFORM_UINT32 unsigned __int32 19 #define PLATFORM_UINT64 unsigned __int64 20 #define PLATFORM_FLOAT32 float 21 #define PLATFORM_FLOAT64 double 22 23 #if _MSC_VER <= 1200 24 typedef int intptr_t; 25 #endif 26 27 #ifdef DOM_DYNAMIC 28 29 #ifdef DOM_EXPORT 30 #define DLLSPEC __declspec( dllexport ) 31 #else 32 #define DLLSPEC __declspec( dllimport ) 33 #endif 34 35 #else 36 #define DLLSPEC 37 #endif 38 39 // GCC doesn't understand "#pragma warning" 40 #ifdef _MSC_VER 41 // class 'std::auto_ptr<_Ty>' needs to have dll-interface to be used by clients of class 'daeErrorHandler' 42 #pragma warning(disable: 4251) 43 // warning C4100: 'profile' : unreferenced formal parameter 44 #pragma warning(disable: 4100) 45 // warning C4355: 'this' : used in base member initializer list 46 #pragma warning(disable: 4355) 47 // warning C4512: 'daeDatabase' : assignment operator could not be generated 48 #pragma warning(disable: 4512) 49 // warning LNK4099: Missing pdb file for PCRE 50 #pragma warning(disable: 4099) 51 #endif 52 53 #endif 54