summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/stc/carc.h4
-rw-r--r--include/stc/cbox.h4
-rw-r--r--include/stc/template.h2
3 files changed, 5 insertions, 5 deletions
diff --git a/include/stc/carc.h b/include/stc/carc.h
index 94dc9bd6..4b9cc875 100644
--- a/include/stc/carc.h
+++ b/include/stc/carc.h
@@ -78,10 +78,10 @@ int main() {
#ifndef _i_prefix
#define _i_prefix carc_
#endif
-#if !(defined i_cmp || defined i_less || defined i_val_class)
+#if !(defined i_cmp || defined i_less || defined i_key_class || defined i_val_class)
#define _i_no_cmp
#endif
-#if !(defined i_eq || defined i_hash || defined i_val_class)
+#if !(defined i_eq || defined i_hash || defined i_key_class || defined i_val_class)
#define _i_no_hash
#endif
#include "template.h"
diff --git a/include/stc/cbox.h b/include/stc/cbox.h
index f31c5feb..651abf4b 100644
--- a/include/stc/cbox.h
+++ b/include/stc/cbox.h
@@ -70,10 +70,10 @@ int main() {
#ifndef _i_prefix
#define _i_prefix cbox_
#endif
-#if !(defined i_cmp || defined i_less || defined i_val_class)
+#if !(defined i_cmp || defined i_less || defined i_key_class || defined i_val_class)
#define _i_no_cmp
#endif
-#if !(defined i_eq || defined i_hash || defined i_val_class)
+#if !(defined i_eq || defined i_hash || defined i_key_class || defined i_val_class)
#define _i_no_hash
#endif
#include "template.h"
diff --git a/include/stc/template.h b/include/stc/template.h
index 000b516e..4e954b46 100644
--- a/include/stc/template.h
+++ b/include/stc/template.h
@@ -142,7 +142,7 @@
#ifndef i_cmp
#define i_cmp c_paste(i_keyraw, _cmp)
#endif
- #if !defined i_hash
+ #ifndef i_hash
#define i_hash c_paste(i_keyraw, _hash)
#endif
#endif