Mesa (master): glx: Include util/ macros.h instead of redefining PRINTFLIKE.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Mon Apr 13 12:09:39 UTC 2015


Module: Mesa
Branch: master
Commit: fa1b3e1501da3d24ec4205e0056d67ef9d2663ac
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=fa1b3e1501da3d24ec4205e0056d67ef9d2663ac

Author: Jose Fonseca <jfonseca at vmware.com>
Date:   Thu Apr  2 11:25:06 2015 +0100

glx: Include util/macros.h instead of redefining PRINTFLIKE.

Reviewed-by: Roland Scheidegger <sroland at vmware.com>

---

 src/glx/dri_common.h |    7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/src/glx/dri_common.h b/src/glx/dri_common.h
index 5cd150a..947d331 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;
 




More information about the mesa-commit mailing list