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:
parent
e02f0db030
commit
e7bb0530f0
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue