aboutsummaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
authornytpu <alex@nytpu.com>2021-05-26 10:13:54 -0600
committernytpu <alex@nytpu.com>2021-05-26 14:27:19 -0600
commita12f5fd733b743528b00f831f572fddf6abe1837 (patch)
tree7cd888ef044b4d3ab4bc3477bf26000d5afd370f /common.h
parentadd proper noreturn specifier (diff)
downloaded-a12f5fd733b743528b00f831f572fddf6abe1837.tar.bz2
ed-a12f5fd733b743528b00f831f572fddf6abe1837.zip
add VERSION define to Makefile
Diffstat (limited to 'common.h')
-rw-r--r--common.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/common.h b/common.h
index 648fe82..0791523 100644
--- a/common.h
+++ b/common.h
@@ -16,6 +16,11 @@
// Clang's extensions to C99?
#define _ISOC11_SOURCE
+// should be set to proper number by preprocessor
+#ifndef VERSION
+#define VERSION " Unknown"
+#endif // VERSION
+
// default to 80 columns
#define DEFAULT_WIDTH 80