소스 검색

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

Workaround refined macro warning when building CTKDICOMWidgetsPythonQt
Jean-Christophe Fillion-Robin 9 년 전
부모
커밋
6453c27f5b
1개의 변경된 파일10개의 추가작업 그리고 1개의 파일을 삭제
  1. 10 1
      CMake/ctkWrapPythonQt.py

+ 10 - 1
CMake/ctkWrapPythonQt.py

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