Blender V2.61 - r43446
|
00001 /* 00002 * ***** BEGIN GPL LICENSE BLOCK ***** 00003 * 00004 * This program is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU General Public License 00006 * as published by the Free Software Foundation; either version 2 00007 * of the License, or (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program; if not, write to the Free Software Foundation, 00016 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00017 * 00018 * The Original Code is Copyright (C) 2001-2002 by NaN Holding BV. 00019 * All rights reserved. 00020 * 00021 * The Original Code is: all of this file. 00022 * 00023 * Contributor(s): none yet. 00024 * 00025 * ***** END GPL LICENSE BLOCK ***** 00026 */ 00027 00032 #ifndef KX_PYTHON_H 00033 #define KX_PYTHON_H 00034 00035 //#define USE_DL_EXPORT 00036 00037 /* python redefines, quiet the compiler */ 00038 #ifdef _XOPEN_SOURCE 00039 #undef _XOPEN_SOURCE 00040 #endif 00041 00042 #ifdef _POSIX_C_SOURCE 00043 #undef _POSIX_C_SOURCE 00044 #endif 00045 00046 #ifdef WITH_PYTHON 00047 #include "Python.h" 00048 00049 #define USE_MATHUTILS // Blender 2.5x api will use mathutils, for a while we might want to test without it 00050 00051 #endif 00052 00053 #ifdef __FreeBSD__ 00054 #include <osreldate.h> 00055 #if __FreeBSD_version > 500039 00056 #undef isalnum 00057 #undef isalpha 00058 #undef iscntrl 00059 #undef isdigit 00060 #undef isgraph 00061 #undef islower 00062 #undef isprint 00063 #undef ispunct 00064 #undef isspace 00065 #undef isupper 00066 #undef isxdigit 00067 #undef tolower 00068 #undef toupper 00069 #endif 00070 #endif 00071 00072 #ifdef __APPLE__ 00073 #undef isalnum 00074 #undef isalpha 00075 #undef islower 00076 #undef isspace 00077 #undef isupper 00078 #undef tolower 00079 #undef toupper 00080 #endif 00081 00082 #endif // KX_PYTHON_H 00083