From 675b92aa6b6c8124c8ccf9535e338fd37b8b9977 Mon Sep 17 00:00:00 2001 From: Nick Wellnhofer Date: Sun, 16 Nov 2014 21:56:49 +0100 Subject: Move inline function definitions to header files Inline functions must be defined in header files in order to be inlined in other compilation units. This also fixes the MSVC build where out-of-line versions weren't created and allows to remove the -fgnu89-inline flag. --- src/CMakeLists.txt | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/CMakeLists.txt') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index c399713..6f78a26 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -125,10 +125,6 @@ if(MSVC) set(CMAKE_C_FLAGS "/TP") endif() -if(CMAKE_COMPILER_IS_MINGW) - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -fgnu89-inline") -endif(CMAKE_COMPILER_IS_MINGW) - if($ENV{TIMER}) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DTIMER=1") endif($ENV{TIMER}) -- cgit v1.2.3