From e7bb0530f021f69012941fba16781b3e17c874e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Pettersson?= Date: Thu, 18 Sep 2014 08:55:31 +0200 Subject: [PATCH] Removed -D_GNU_SOURCE and changed std mode to gnu99. This fixes bugs with strdup not being defined, as well as WeeChat macro expansion. --- CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b97397d..b572d26 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,8 +24,7 @@ add_library(tox MODULE src/tox-weechat-config.c ) -add_definitions(-D_GNU_SOURCE) -set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99 -Wall -Wextra -Werror-implicit-function-declaration -Wno-unused-parameter") +set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -Wall -Wextra -Werror-implicit-function-declaration -Wno-unused-parameter") target_link_libraries(tox toxcore)