building without python was broken
authorCampbell Barton <ideasman42@gmail.com>
Sun, 12 Sep 2010 12:09:31 +0000 (12:09 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 12 Sep 2010 12:09:31 +0000 (12:09 +0000)
source/blender/windowmanager/intern/wm.c
source/blender/windowmanager/intern/wm_files.c

index 5f38617..cce1c14 100644 (file)
 #include "MEM_guardedalloc.h"
 
 #include "ED_screen.h"
-#include "BPY_extern.h"
 
+#ifndef DISABLE_PYTHON
+#include "BPY_extern.h"
+#endif
 
 /* ****************************************************** */
 
index 1264f49..1a044c6 100644 (file)
@@ -96,7 +96,9 @@
 
 #include "GPU_draw.h"
 
+#ifndef DISABLE_PYTHON
 #include "BPY_extern.h"
+#endif
 
 #include "WM_api.h"
 #include "WM_types.h"