[gtk/debug-envvars-cleanup] Fixup __VA_ARGS__
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/debug-envvars-cleanup] Fixup __VA_ARGS__
- Date: Fri, 23 Sep 2022 19:23:02 +0000 (UTC)
commit bf6da2d856b1055c49bbf3054c3226b147b9318c
Author: Matthias Clasen <mclasen redhat com>
Date: Fri Sep 23 15:22:26 2022 -0400
Fixup __VA_ARGS__
__VA_OPT__ doesn't work with clang on macos, so
try the GNU ## extension.
gdk/gdkdebug.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gdk/gdkdebug.h b/gdk/gdkdebug.h
index b888d2c1fd..94cc26aa6e 100644
--- a/gdk/gdkdebug.h
+++ b/gdk/gdkdebug.h
@@ -59,7 +59,7 @@ GdkDebugFlags gdk_display_get_debug_flags (GdkDisplay *display);
void gdk_display_set_debug_flags (GdkDisplay *display,
GdkDebugFlags flags);
-#define gdk_debug_message(format, ...) g_fprintf (stderr, format "\n" __VA_OPT__(,) __VA_ARGS__)
+#define gdk_debug_message(format, ...) g_fprintf (stderr, format "\n", ##__VA_ARGS__)
#ifdef G_ENABLE_DEBUG
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]