yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #01293
[svn] r1793 - trunk/gui/py
Author: eudoxos
Date: 2009-06-09 13:23:06 +0200 (Tue, 09 Jun 2009)
New Revision: 1793
Modified:
trunk/gui/py/PythonUI.cpp
Log:
Do not include X11 headers if without opengl
Modified: trunk/gui/py/PythonUI.cpp
===================================================================
--- trunk/gui/py/PythonUI.cpp 2009-06-08 17:54:18 UTC (rev 1792)
+++ trunk/gui/py/PythonUI.cpp 2009-06-09 11:23:06 UTC (rev 1793)
@@ -8,7 +8,9 @@
#include"PythonUI.hpp"
-#include <X11/Xlib.h>
+#ifdef YADE_OPENGL
+ #include <X11/Xlib.h>
+#endif
using namespace boost;
@@ -123,7 +125,9 @@
// LOG_ERROR("Unprocessed non-option argument: `"<<argv[index]<<"'");
/** thread setup **/
- XInitThreads();
+ #ifdef YADE_OPENGL
+ XInitThreads();
+ #endif
PyEval_InitThreads();
pythonSession();