From a25005cff76d7aa55440e1354c948d2cdfe1b203 Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Sun, 5 Feb 2006 11:27:17 +0000 Subject: 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 --- modules/CheckPrototypeExists.cmake | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'modules/CheckPrototypeExists.cmake') 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; } -- cgit v1.2.1