[glib] gmacros.h: fix C99 check



commit dc172f06162398b51d230511756292154bace423
Author: Dan Winship <danw gnome org>
Date:   Sat Nov 2 12:18:45 2013 -0400

    gmacros.h: fix C99 check
    
    G_STRFUNC was checking __STDC_VERSION__ against the wrong value
    (though it didn't actually matter, since __STDC_VERSION__ wasn't
    defined in C90, so the check still only matched C99 and above anyway).

 glib/gmacros.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glib/gmacros.h b/glib/gmacros.h
index f3f542b..8a36671 100644
--- a/glib/gmacros.h
+++ b/glib/gmacros.h
@@ -195,7 +195,7 @@
 /* Provide a string identifying the current function, non-concatenatable */
 #if defined (__GNUC__) && defined (__cplusplus)
 #  define G_STRFUNC     ((const char*) (__PRETTY_FUNCTION__))
-#elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 19901L
+#elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
 #  define G_STRFUNC     ((const char*) (__func__))
 #elif defined (__GNUC__) || (defined(_MSC_VER) && (_MSC_VER > 1300))
 #  define G_STRFUNC     ((const char*) (__FUNCTION__))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]