summaryrefslogtreecommitdiffstats
path: root/dimension/utility.h
diff options
context:
space:
mode:
Diffstat (limited to 'dimension/utility.h')
-rw-r--r--dimension/utility.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/dimension/utility.h b/dimension/utility.h
index c26069c..d4ebda4 100644
--- a/dimension/utility.h
+++ b/dimension/utility.h
@@ -17,6 +17,11 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
*************************************************************************/
+#ifndef __GNUC__
+ #define __attribute__(x)
+#endif
+
/* Print a parsing diagnostic to stderr */
void dmnsn_diagnostic(const char *filename, int line, int col,
- const char *format, ...);
+ const char *format, ...)
+ __attribute__ ((format (printf, 4, 5)));