diff options
author | Alexander Neundorf <neundorf@kde.org> | 2006-02-05 11:27:17 +0000 |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2006-02-05 11:27:17 +0000 |
commit | a25005cff76d7aa55440e1354c948d2cdfe1b203 (patch) | |
tree | 92973fba981e55ad4910345a1deb6102c7188f61 | |
parent | 4fcbcf67384df12e986f06d491262e3e28da5732 (diff) | |
download | extra-cmake-modules-a25005cff76d7aa55440e1354c948d2cdfe1b203.tar.gz extra-cmake-modules-a25005cff76d7aa55440e1354c948d2cdfe1b203.tar.bz2 |
the former version of CheckPrototypeExists was basically a CheckFunctionExists, the fix by Peter Kuemmel is also the fix for UNXI
Alex
svn path=/trunk/KDE/kdelibs/; revision=505907
-rw-r--r-- | modules/CheckPrototypeExists.cmake | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/modules/CheckPrototypeExists.cmake b/modules/CheckPrototypeExists.cmake index 0c72adef..1c0d7c13 100644 --- a/modules/CheckPrototypeExists.cmake +++ b/modules/CheckPrototypeExists.cmake @@ -16,15 +16,10 @@ MACRO(CHECK_PROTOTYPE_EXISTS _SYMBOL _HEADER _RESULT) SET(_CHECK_PROTO_EXISTS_SOURCE_CODE " ${_INCLUDE_FILES} -void cmakeRequireSymbol(int dummy,...){(void)dummy;} int main() { #ifndef ${_SYMBOL} -#ifndef _MSC_VER - cmakeRequireSymbol(0,&${_SYMBOL}); -#else - char i = sizeof(&${_SYMBOL}); -#endif + int i = sizeof(&${_SYMBOL}); #endif return 0; } |