hopefully fixes building on msvc, also some minor header edits

This commit is contained in:
2012-11-05 14:58:12 +00:00
parent 6b0c7c1e59
commit ea61c74262
2 changed files with 10 additions and 8 deletions

View File

@@ -24,7 +24,6 @@
* \ingroup pythonintern
*/
#ifndef __BPY_UTIL_H__
#define __BPY_UTIL_H__
@@ -33,12 +32,13 @@
#endif
#if PY_VERSION_HEX < 0x03030000
# warning "Python 3.2 will be deprecated soon, upgrade to Python 3.3."
# ifdef _MSC_VER
# pragma message("Python 3.2 will be deprecated soon, upgrade to Python 3.3.")
# else
# warning "Python 3.2 will be deprecated soon, upgrade to Python 3.3."
# endif
#endif
#include "RNA_types.h" /* for EnumPropertyItem only */
struct EnumPropertyItem;
struct ReportList;
@@ -56,4 +56,5 @@ void BPy_SetContext(struct bContext *C);
extern void bpy_context_set(struct bContext *C, PyGILState_STATE *gilstate);
extern void bpy_context_clear(struct bContext *C, PyGILState_STATE *gilstate);
#endif
#endif /* __BPY_UTIL_H__ */