00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef SkPreConfig_DEFINED
00018 #define SkPreConfig_DEFINED
00019
00021
00022 #if !defined(SK_BUILD_FOR_PALM) && !defined(SK_BUILD_FOR_WINCE) && !defined(SK_BUILD_FOR_WIN32) && !defined(SK_BUILD_FOR_SYMBIAN) && !defined(SK_BUILD_FOR_UNIX) && !defined(SK_BUILD_FOR_MAC) && !defined(SK_BUILD_FOR_SDL)
00023
00024 #if defined(PALMOS_SDK_VERSION)
00025 #define SK_BUILD_FOR_PALM
00026 #elif defined(UNDER_CE)
00027 #define SK_BUILD_FOR_WINCE
00028 #elif defined(WIN32)
00029 #define SK_BUILD_FOR_WIN32
00030 #elif defined(__SYMBIAN32__)
00031 #define SK_BUILD_FOR_WIN32
00032 #elif defined(linux)
00033 #define SK_BUILD_FOR_UNIX
00034 #else
00035 #define SK_BUILD_FOR_MAC
00036 #endif
00037
00038 #endif
00039
00041
00042 #if !defined(SK_DEBUG) && !defined(SK_RELEASE)
00043 #ifdef NDEBUG
00044 #define SK_RELEASE
00045 #else
00046 #define SK_DEBUG
00047 #endif
00048 #endif
00049
00051
00052 #if !defined(SK_RESTRICT)
00053 #define SK_RESTRICT __restrict__
00054 #endif
00055
00057
00058 #if !defined(SK_SCALAR_IS_FLOAT) && !defined(SK_SCALAR_IS_FIXED)
00059 #define SK_SCALAR_IS_FLOAT
00060 #define SK_CAN_USE_FLOAT
00061 #endif
00062
00064
00065 #if !defined(SK_CPU_BENDIAN) && !defined(SK_CPU_LENDIAN)
00066 #if defined (__ppc__) || defined(__ppc64__)
00067 #define SK_CPU_BENDIAN
00068 #else
00069 #define SK_CPU_LENDIAN
00070 #endif
00071 #endif
00072
00074
00075 #if (defined(__arm__) && !defined(__thumb__)) || defined(SK_BUILD_FOR_BREW) || defined(SK_BUILD_FOR_WINCE) || (defined(SK_BUILD_FOR_SYMBIAN) && !defined(__MARM_THUMB__))
00076
00077 #define SK_CPU_HAS_CONDITIONAL_INSTR
00078 #endif
00079
00080 #endif
00081