瀏覽代碼

Merge branch 'workaround-to-suppress-have-stat-redefined-warning'

* workaround-to-suppress-have-stat-redefined-warning:
  Workaround to fix HAVE_STAT redefined warning related to DICOM module wrapping
Jean-Christophe Fillion-Robin 10 年之前
父節點
當前提交
d72ab0c0e3
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      CMake/ctkWrapPythonQt.py

+ 2 - 0
CMake/ctkWrapPythonQt.py

@@ -186,6 +186,8 @@ ${pythonqtWrappers}
 //
 
 #include <PythonQt.h>
+// XXX Avoid  warning: "HAVE_STAT" redefined
+#undef HAVE_STAT
 #include "${namespace}_${target}.h"
 
 void PythonQt_init_${namespace}_${target}(PyObject* module)