00001
00002 #ifndef __UPF_PLATFORM_H__
00003 #define __UPF_PLATFORM_H__
00004
00005
00006
00007
00008
00009 #if defined(__GNUC__)
00010 #define _UPF_PRAGMA_PACK_GNU
00011 #endif
00012
00013
00014
00015
00016
00017
00018 #if defined(__INTEL_COMPILER)
00019 #define _UPF_PRAGMA_PACK_WIN32
00020 #endif
00021
00022
00023
00024
00025
00026
00027
00028 #if defined(__unix__) || defined(__linux__)
00029
00030 #define __UPF_UNIX__ 1
00031 #define _UPF_EXPORTED_SYMBOL _UPF_EXTERN_C
00032 #define _UPF_ALWAYS_EXPORTED_SYMBOL _UPF_EXTERN_C
00033 #define _UPF_CALLING_CONVENTION
00034 #define _UPF_FUNCNAME_PREFIX
00035
00036 #endif
00037
00038
00039
00040
00041
00042
00043 #if defined(_WIN32) || defined(WIN32) || defined(__WIN32__)
00044
00045 #define __UPF_WIN32__ 1
00046 #ifdef UPF_BUILDING_CORE
00047 #define _UPF_EXPORTED_SYMBOL _UPF_EXTERN_C __declspec(dllexport)
00048 #else
00049 #define _UPF_EXPORTED_SYMBOL _UPF_EXTERN_C __declspec(dllimport)
00050 #endif
00051 #define _UPF_ALWAYS_EXPORTED_SYMBOL _UPF_EXTERN_C __declspec(dllexport)
00052 #define _UPF_CALLING_CONVENTION __cdecl
00053
00054 #ifndef _UPF_PRAGMA_PACK_GNU
00055 #define _UPF_PRAGMA_PACK_WIN32
00056 #endif
00057
00058 #endif
00059
00060
00061
00062 #endif
00063