Removed -D_GNU_SOURCE and changed std mode to gnu99.

This fixes bugs with strdup not being defined, as well as WeeChat macro expansion.
This commit is contained in:
Håvard Pettersson 2014-09-18 08:55:31 +02:00
parent e02f0db030
commit e7bb0530f0

View File

@ -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)