From: Jose Fonseca Date: Thu, 2 Apr 2015 10:25:06 +0000 (+0100) Subject: glx: Include util/macros.h instead of redefining PRINTFLIKE. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fa1b3e1501da3d24ec4205e0056d67ef9d2663ac;p=mesa.git glx: Include util/macros.h instead of redefining PRINTFLIKE. Reviewed-by: Roland Scheidegger --- 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 #include #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;