From efeb8be52789d9cf5d44138dbf07d5b5c6822e2e Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 3 Jun 2014 05:51:29 +0200 Subject: #warning is a GCC extension MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/test/test.c | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/src/test/test.c b/src/test/test.c index f5f5c42..4d20aa8 100644 --- a/src/test/test.c +++ b/src/test/test.c @@ -23,20 +23,22 @@ #include -#if LIBGAMMA_ERROR_MIN < -46 -# warning New error codes have been added to libgamma. -#endif -#if LIBGAMMA_METHOD_COUNT > 6 -# warning New adjust methods has been added to libgamma -#endif -#if LIBGAMMA_CONNECTOR_TYPE_COUNT > 19 -# warning New connector types have been added to libgamma. -#endif -#if LIBGAMMA_SUBPIXEL_ORDER_COUNT > 6 -# warning New subpixel orders have been added to libgamma. -#endif -#if LIBGAMMA_CRTC_INFO_COUNT > 13 -# warning New CRTC information fields have been added to libgamma. +#ifdef __GNUC__ +# if LIBGAMMA_ERROR_MIN < -46 +# warning New error codes have been added to libgamma. +# endif +# if LIBGAMMA_METHOD_COUNT > 6 +# warning New adjust methods has been added to libgamma +# endif +# if LIBGAMMA_CONNECTOR_TYPE_COUNT > 19 +# warning New connector types have been added to libgamma. +# endif +# if LIBGAMMA_SUBPIXEL_ORDER_COUNT > 6 +# warning New subpixel orders have been added to libgamma. +# endif +# if LIBGAMMA_CRTC_INFO_COUNT > 13 +# warning New CRTC information fields have been added to libgamma. +# endif #endif -- cgit v1.2.3-70-g09d2