summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJose Fonseca <[email protected]>2015-04-02 11:25:06 +0100
committerJose Fonseca <[email protected]>2015-04-13 12:03:33 +0100
commitfa1b3e1501da3d24ec4205e0056d67ef9d2663ac (patch)
tree910a279c06ad95f28d5e8aefd50a524148085cc9
parent978753e84368ef3afa9288cbfbee1c85b3ab09d1 (diff)
glx: Include util/macros.h instead of redefining PRINTFLIKE.
Reviewed-by: Roland Scheidegger <[email protected]>
-rw-r--r--src/glx/dri_common.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/glx/dri_common.h b/src/glx/dri_common.h
index 5cd150ab4d2..947d331772f 100644
--- a/src/glx/dri_common.h
+++ b/src/glx/dri_common.h
@@ -39,12 +39,7 @@
#include <GL/internal/dri_interface.h>
#include <stdbool.h>
#include "loader.h"
-
-#if (__GNUC__)
-#define PRINTFLIKE(f, a) __attribute__ ((format(__printf__, f, a)))
-#else
-#define PRINTFLIKE(f, a)
-#endif
+#include "util/macros.h" /* for PRINTFLIKE */
typedef struct __GLXDRIconfigPrivateRec __GLXDRIconfigPrivate;