Forráskód Böngészése

Merge pull request #605 from jcfr/workaround-dcmtk-redefined-warning

Workaround refined macro warning when building CTKDICOMWidgetsPythonQt
Jean-Christophe Fillion-Robin 9 éve
szülő
commit
6453c27f5b
1 módosított fájl, 10 hozzáadás és 1 törlés
  1. 10 1
      CMake/ctkWrapPythonQt.py

+ 10 - 1
CMake/ctkWrapPythonQt.py

@@ -186,8 +186,17 @@ ${pythonqtWrappers}
 //
 
 #include <PythonQt.h>
-// XXX Avoid  warning: "HAVE_STAT" redefined
+// XXX Avoid  warning: "HAVE_XXXX" redefined
 #undef HAVE_STAT
+#undef HAVE_FTIME
+#undef HAVE_GETPID
+#undef HAVE_IO_H
+#undef HAVE_STRERROR
+#undef HAVE_SYS_UTIME_H
+#undef HAVE_TEMPNAM
+#undef HAVE_TMPNAM
+#undef HAVE_LONG_LONG
+#undef HAVE_INT64_T
 #include "${namespace}_${target}.h"
 
 void PythonQt_init_${namespace}_${target}(PyObject* module)