aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Linskey2026-06-11 05:35:24 -0400
committerBenjamin Linskey2026-06-11 05:36:22 -0400
commit6bc476786626f214c9bca89f3114792d03bb16fd (patch)
tree2cb0f97ea255eb275ba5d1208a8ef550aa815d6c
parent240de88e5c0762a37d871b78d81ffce3f29f8937 (diff)
downloadrogue-6bc476786626f214c9bca89f3114792d03bb16fd.tar.gz

Define __printflike if needed

Added a macro copied from tmux.h in OpenBSD’s tmux source code.

-rw-r--r--rogue.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/rogue.h b/rogue.h
index e3ae604..b097bf2 100644
--- a/rogue.h
+++ b/rogue.h
@@ -45,6 +45,11 @@
* gain or profit.
*/
+#ifndef __printflike
+#define __printflike(a, b) __attribute__ ((format (printf, a, b)))
+#endif
+
+
#define boolean char
#define NOTHING ((unsigned short) 0)