00001 /* 00002 * Copyright 2006 Sony Computer Entertainment Inc. 00003 * 00004 * Licensed under the MIT Open Source License, for details please see license.txt or the website 00005 * http://www.opensource.org/licenses/mit-license.php 00006 * 00007 */ 00008 00009 #ifndef __DAE_WIN32_PLATFORM_H__ 00010 #define __DAE_WIN32_PLATFORM_H__ 00011 00012 #define PLATFORM_INT8 __int8 00013 #define PLATFORM_INT16 __int16 00014 #define PLATFORM_INT32 __int32 00015 #define PLATFORM_INT64 __int64 00016 #define PLATFORM_UINT8 unsigned __int8 00017 #define PLATFORM_UINT16 unsigned __int16 00018 #define PLATFORM_UINT32 unsigned __int32 00019 #define PLATFORM_UINT64 unsigned __int64 00020 #define PLATFORM_FLOAT32 float 00021 #define PLATFORM_FLOAT64 double 00022 00023 #if _MSC_VER <= 1200 00024 typedef int intptr_t; 00025 #endif 00026 00027 #ifdef DOM_DYNAMIC 00028 00029 #ifdef DOM_EXPORT 00030 #define DLLSPEC __declspec( dllexport ) 00031 #else 00032 #define DLLSPEC __declspec( dllimport ) 00033 #endif 00034 00035 #else 00036 #define DLLSPEC 00037 #endif 00038 00039 // GCC doesn't understand "#pragma warning" 00040 #ifdef _MSC_VER 00041 // class 'std::auto_ptr<_Ty>' needs to have dll-interface to be used by clients of class 'daeErrorHandler' 00042 #pragma warning(disable: 4251) 00043 // warning C4100: 'profile' : unreferenced formal parameter 00044 #pragma warning(disable: 4100) 00045 // warning C4355: 'this' : used in base member initializer list 00046 #pragma warning(disable: 4355) 00047 // warning C4512: 'daeDatabase' : assignment operator could not be generated 00048 #pragma warning(disable: 4512) 00049 // warning LNK4099: Missing pdb file for PCRE 00050 #pragma warning(disable: 4099) 00051 #endif 00052 00053 #endif