mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-25 03:32:12 +01:00
Merge branch '1847-log-structured-max-version' into 'master'
gmessages: Only use structured logs if GLIB_VERSION_MAX_ALLOWED is ≥2.56 Closes #1847 See merge request GNOME/glib!1008
This commit is contained in:
commit
d62cabc624
@ -296,7 +296,7 @@ void g_log_structured_standard (const gchar *log_domain,
|
||||
#endif /* G_LOG_DOMAIN */
|
||||
|
||||
#if defined(G_HAVE_ISO_VARARGS) && !G_ANALYZER_ANALYZING
|
||||
#ifdef G_LOG_USE_STRUCTURED
|
||||
#if defined(G_LOG_USE_STRUCTURED) && GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_56
|
||||
#define g_error(...) G_STMT_START { \
|
||||
g_log_structured_standard (G_LOG_DOMAIN, G_LOG_LEVEL_ERROR, \
|
||||
__FILE__, G_STRINGIFY (__LINE__), \
|
||||
@ -345,7 +345,7 @@ void g_log_structured_standard (const gchar *log_domain,
|
||||
__VA_ARGS__)
|
||||
#endif
|
||||
#elif defined(G_HAVE_GNUC_VARARGS) && !G_ANALYZER_ANALYZING
|
||||
#ifdef G_LOG_USE_STRUCTURED
|
||||
#if defined(G_LOG_USE_STRUCTURED) && GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_56
|
||||
#define g_error(format...) G_STMT_START { \
|
||||
g_log_structured_standard (G_LOG_DOMAIN, G_LOG_LEVEL_ERROR, \
|
||||
__FILE__, G_STRINGIFY (__LINE__), \
|
||||
|
Loading…
x
Reference in New Issue
Block a user