From 650f6218c1b2afce696b2dd7e98c76dcdeafce24 Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Thu, 20 Oct 2022 22:01:40 +0200 Subject: Reverted some of the changes, but works now well. --- include/stc/carc.h | 2 +- include/stc/cbox.h | 2 +- include/stc/ccommon.h | 1 - include/stc/template.h | 3 --- 4 files changed, 2 insertions(+), 6 deletions(-) (limited to 'include') diff --git a/include/stc/carc.h b/include/stc/carc.h index 4b9cc875..cbe2e9e7 100644 --- a/include/stc/carc.h +++ b/include/stc/carc.h @@ -81,7 +81,7 @@ int main() { #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_key_class || defined i_val_class) +#if !(defined i_eq || defined i_hash) #define _i_no_hash #endif #include "template.h" diff --git a/include/stc/cbox.h b/include/stc/cbox.h index 651abf4b..fbd19c50 100644 --- a/include/stc/cbox.h +++ b/include/stc/cbox.h @@ -73,7 +73,7 @@ int main() { #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_key_class || defined i_val_class) +#if !(defined i_eq || defined i_hash) #define _i_no_hash #endif #include "template.h" diff --git a/include/stc/ccommon.h b/include/stc/ccommon.h index 5ecb42f8..52c05693 100644 --- a/include/stc/ccommon.h +++ b/include/stc/ccommon.h @@ -111,7 +111,6 @@ #define c_no_atomic (1<<1) #define c_no_clone (1<<2) #define c_no_cmp (1<<3) -#define c_no_hash (1<<4) /* Generic algorithms */ diff --git a/include/stc/template.h b/include/stc/template.h index 4e954b46..769c07c9 100644 --- a/include/stc/template.h +++ b/include/stc/template.h @@ -163,9 +163,6 @@ #if c_option(c_no_cmp) #define _i_no_cmp #endif -#if c_option(c_no_hash) - #define _i_no_hash -#endif #if c_option(c_no_clone) || (!defined i_keyclone && (defined i_keydrop || defined i_keyraw)) #define _i_no_clone #endif -- cgit v1.2.3