aboutsummaryrefslogtreecommitdiffstats
path: root/src/glx/dri_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/glx/dri_common.h')
-rw-r--r--src/glx/dri_common.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/glx/dri_common.h b/src/glx/dri_common.h
index 4fe0d3faf98..425d89f9224 100644
--- a/src/glx/dri_common.h
+++ b/src/glx/dri_common.h
@@ -39,6 +39,12 @@
#include <GL/internal/dri_interface.h>
#include <stdbool.h>
+#if (__GNUC__ >= 3)
+#define PRINTFLIKE(f, a) __attribute__ ((format(__printf__, f, a)))
+#else
+#define PRINTFLIKE(f, a)
+#endif
+
typedef struct __GLXDRIconfigPrivateRec __GLXDRIconfigPrivate;
struct __GLXDRIconfigPrivateRec
@@ -61,10 +67,10 @@ driReleaseDrawables(struct glx_context *gc);
extern const __DRIsystemTimeExtension systemTimeExtension;
-extern void InfoMessageF(const char *f, ...);
+extern void dri_message(int level, const char *f, ...) PRINTFLIKE(2, 3);
+extern void InfoMessageF(const char *f, ...);
extern void ErrorMessageF(const char *f, ...);
-
extern void CriticalErrorMessageF(const char *f, ...);
extern void *driOpenDriver(const char *driverName);