glx: Include util/macros.h instead of redefining PRINTFLIKE.
authorJose Fonseca <jfonseca@vmware.com>
Thu, 2 Apr 2015 10:25:06 +0000 (11:25 +0100)
committerJose Fonseca <jfonseca@vmware.com>
Mon, 13 Apr 2015 11:03:33 +0000 (12:03 +0100)
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/glx/dri_common.h

index 5cd150ab4d2f26a4e33556e9d7f7303d3d4efa37..947d331772fa25f42ef4226c33a0e92bce1cba43 100644 (file)
 #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;