aboutsummaryrefslogtreecommitdiff
path: root/utils.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2021-04-17 00:09:49 -0700
committerBruce Hill <bruce@bruce-hill.com>2021-04-17 00:09:49 -0700
commit6a1522645e5ec0f3f81234ca776be8896a81bd42 (patch)
tree527d36921b01ee67db2b52f36347dd18eb2f6550 /utils.h
parent2c44abc2c4940c9db3e76f8f24de35dd88256848 (diff)
Proper history functionality via cd:- and cd:+
Diffstat (limited to 'utils.h')
-rw-r--r--utils.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/utils.h b/utils.h
index a3f75e4..0703912 100644
--- a/utils.h
+++ b/utils.h
@@ -10,6 +10,11 @@
#define FILE_UTILS__H
#include <stdio.h>
+#include <string.h>
+
+#ifndef streq
+#define streq(a,b) (strcmp(a,b)==0)
+#endif
#define MAX(a,b) ((a) < (b) ? (b) : (a))
#define MIN(a,b) ((a) > (b) ? (b) : (a))