1.1 --- a/src/cx/collection.h Sat Dec 30 18:48:25 2023 +0100 1.2 +++ b/src/cx/collection.h Sun Dec 31 14:29:46 2023 +0100 1.3 @@ -48,6 +48,8 @@ 1.4 */ 1.5 #define CX_STORE_POINTERS 0 1.6 1.7 +#ifndef CX_COMPARE_FUNC_DEFINED 1.8 +#define CX_COMPARE_FUNC_DEFINED 1.9 /** 1.10 * A comparator function comparing two collection elements. 1.11 */ 1.12 @@ -55,6 +57,7 @@ 1.13 void const *left, 1.14 void const *right 1.15 ); 1.16 +#endif // CX_COMPARE_FUNC_DEFINED 1.17 1.18 /** 1.19 * Use this macro to declare common members for a collection structure.