asprintf is GNU specific

Unless we have a replacement, use _USE_GNU
This commit is contained in:
Daniel Molkentin 2013-08-02 15:20:03 +02:00
parent 8c9799cede
commit 575874bcbe

View file

@ -16,6 +16,7 @@ if (${CMAKE_C_COMPILER_ID} MATCHES "(GNU|Clang)")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -Wshadow -Wmissing-prototypes -Wdeclaration-after-statement")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wunused -Wfloat-equal -Wpointer-arith -Wwrite-strings -Wformat-security")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wmissing-format-attribute")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wmissing-format-attribute -D_USE_GNU")
set(CSYNC_STRICT ON CACHE BOOL "Strict error checking, enabled -Werror and friends")
if (CSYNC_STRICT)