summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-08-31 16:26:15 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2010-08-31 16:36:19 -0300
commitdc1eef279e3b34f5e978e2e07a80969b07a112e8 (patch)
treed774979168a82fae1af227d3f2707858a2e0725e
parent28000755c2913851a3c7c339a8eabe6ece450c30 (diff)
downloadshiboken-dc1eef279e3b34f5e978e2e07a80969b07a112e8.tar.gz
shiboken-dc1eef279e3b34f5e978e2e07a80969b07a112e8.tar.xz
shiboken-dc1eef279e3b34f5e978e2e07a80969b07a112e8.zip
Fix Qt class detection on Windows.
-rw-r--r--PySide/CMakeLists.txt3
1 files changed, 1 insertions, 2 deletions
diff --git a/PySide/CMakeLists.txt b/PySide/CMakeLists.txt
index d5368e33..4c017953 100644
--- a/PySide/CMakeLists.txt
+++ b/PySide/CMakeLists.txt
@@ -65,8 +65,7 @@ macro(check_qt_class module class global_sources)
file(WRITE ${SRC_FILE}
"#include <${module}>\n"
"#include <typeinfo>\n"
- "#include <inttypes.h>\n"
- "int main() { return (intptr_t) &typeid(${class}); }\n"
+ "int main() { typeid(${class}); }\n"
)
try_compile(Q_WORKS ${CMAKE_BINARY_DIR}
${SRC_FILE}