shithub: choc

Download patch

ref: ce935d5ac051860c73ec9f2fad650393c345902a
parent: 0b50fbde6a49250d4372a3255b1e1fd451326abe
author: Turo Lamminen <turotl@gmail.com>
date: Tue Feb 13 13:39:02 EST 2018

Add GCC printf format attribute

--- a/src/doomtype.h
+++ b/src/doomtype.h
@@ -65,8 +65,11 @@
 #define PACKEDATTR __attribute__((packed))
 #endif
 
+#define PRINTF_ATTR(fmt, first) __attribute__((format(printf, fmt, first)))
+
 #else
 #define PACKEDATTR
+#define PRINTF_ATTR(fmt, first)
 #endif
 
 #ifdef __WATCOMC__