define _GNU_SOURCE for strdup
This commit is contained in:
parent
2e720e68c4
commit
f0106b767b
1 changed files with 2 additions and 0 deletions
|
@ -36,6 +36,8 @@ if(CMAKE_COMPILER_IS_GNUCC AND NOT WIN32)
|
|||
ADD_DEFINITIONS(-Wsign-compare)
|
||||
ADD_DEFINITIONS(-g3 -O0)
|
||||
ADD_DEFINITIONS(-std=gnu99)
|
||||
# for strdup
|
||||
ADD_DEFINITIONS(-D_GNU_SOURCE)
|
||||
#http://gcc.gnu.org/wiki/Visibility
|
||||
add_definitions(-fvisibility=hidden)
|
||||
endif()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue