From 0c2efa1253514dbaeb15cc72a704761ed598c4fc Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 12 Jan 2010 08:48:25 -0800 Subject: Use GCC's format attribute for al_printf --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 8c60a11e..1577e054 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -136,6 +136,9 @@ ELSE() ENDIF() ENDIF() +CHECK_C_SOURCE_COMPILES("int foo(const char *str, ...) __attribute__((format(printf, 1, 2))); + int main() {return 0;}" HAVE_GCC_FORMAT) + CHECK_INCLUDE_FILE(fenv.h HAVE_FENV_H) CHECK_INCLUDE_FILE(float.h HAVE_FLOAT_H) -- cgit v1.2.3