diff options
author | Anderson Lizardo <anderson.lizardo@openbossa.org> | 2010-08-26 15:10:12 -0400 |
---|---|---|
committer | Anderson Lizardo <anderson.lizardo@openbossa.org> | 2010-08-26 15:30:07 -0400 |
commit | c25215106caf093a02443059817f5ceb86457254 (patch) | |
tree | 424fb5be22f7bedb2d0cede2e66cbe03952da79c | |
parent | 653261e047871ae64d4e3bb97b7b24d05df06db3 (diff) | |
download | shiboken-c25215106caf093a02443059817f5ceb86457254.tar.gz shiboken-c25215106caf093a02443059817f5ceb86457254.tar.xz shiboken-c25215106caf093a02443059817f5ceb86457254.zip |
Fix class checking for 64-bits
Reviewed-by: Lauro Neto <lauro.neto@openbossa.org>
Reviewed-by: Bruno dos Santos de Araujo <bruno.araujo@openbossa.org>
-rw-r--r-- | PySide/CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/PySide/CMakeLists.txt b/PySide/CMakeLists.txt index 05dd4ffe..cce0f4ce 100644 --- a/PySide/CMakeLists.txt +++ b/PySide/CMakeLists.txt @@ -64,7 +64,8 @@ macro(check_qt_class module class global_sources) file(WRITE ${SRC_FILE} "#include <${module}>\n" "#include <typeinfo>\n" - "int main() { return (int) &typeid(${class}); }\n" + "#include <inttypes.h>\n" + "int main() { return (intptr_t) &typeid(${class}); }\n" ) try_compile(Q_WORKS ${CMAKE_BINARY_DIR} ${SRC_FILE} |