Explorar el Código

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

Workaround refined macro warning when building CTKDICOMWidgetsPythonQt
Jean-Christophe Fillion-Robin hace 9 años
padre
commit
6453c27f5b
Se han modificado 1 ficheros con 10 adiciones y 1 borrados
  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)