浏览代码

Fix CTKDICOMWidgetsPythonQt windows build error undefining HAVE_INT64_T

This is a workaround to allow the build against DCMTK
version DCMTK-3.6.1_20150924 to succeed.

A more appropriate solution could be to update DCMTK so that it uses
namespaced macros like DCMTK_HAVE_INT64_T

This commit fixes the following build error:

//----
error C2146: syntax error : missing ';' before identifier 'Sint64'
C:\D\N\Slicer-1-build\DCMTK\ofstd\include\dcmtk/ofstd/oftypes.h(111) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
//----

See Slicer/Slicer#359

Reported-by: Andriy Fedorov <fedorov@bwh.harvard.edu>
Thanks: Andras Lasso <lasso@queensu.ca>
Jean-Christophe Fillion-Robin 9 年之前
父节点
当前提交
281ffb7297
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      CMake/ctkWrapPythonQt.py

+ 1 - 0
CMake/ctkWrapPythonQt.py

@@ -196,6 +196,7 @@ ${pythonqtWrappers}
 #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)