From 8badd3740e1a2e13affb4553c69ca44b1649035b Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 19 Apr 2014 01:10:12 -0700 Subject: Dont bother trying _alloca We prefer C99 variable-length arrays, and other systems (including MSVC9) don't have an issue with alloca. --- CMakeLists.txt | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0e159bff..0d440aab 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -355,12 +355,7 @@ IF(NOT HAVE_C99_VLA) CHECK_SYMBOL_EXISTS(alloca malloc.h HAVE_ALLOCA) ENDIF() IF(NOT HAVE_ALLOCA) - CHECK_SYMBOL_EXISTS(_alloca malloc.h HAVE__ALLOCA) - IF(NOT HAVE__ALLOCA) - MESSAGE(FATAL_ERROR "No alloca function found, please report!") - ENDIF() - - ADD_DEFINITIONS(-Dalloca=_alloca) + MESSAGE(FATAL_ERROR "No alloca function found, please report!") ENDIF() ENDIF() -- cgit v1.2.3