From e5d090d7ef8a85f868988066d1c603b87d1b5ce7 Mon Sep 17 00:00:00 2001 From: fanasina Date: Tue, 7 Apr 2026 19:41:22 +0200 Subject: [PATCH] [update] y_tensor_h : add ifndef before IMPLEMENTATIONS --- onetensor/y_tensor_h.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/onetensor/y_tensor_h.h b/onetensor/y_tensor_h.h index 8780d20..6e70e0b 100644 --- a/onetensor/y_tensor_h.h +++ b/onetensor/y_tensor_h.h @@ -147,6 +147,7 @@ long diff_timespec_nanoseconds(struct timespec time_stop, struct timespec time_s +#ifndef IMPLEMENTATION_TOOLS #define IMPLEMENTATION_TOOLS()\ \ GEN_TO_STR_N(TYPE_CHAR,2,"%c")\ @@ -266,7 +267,7 @@ long diff_timespec_nanoseconds(struct timespec time_stop, struct timespec time_s }\ \ - +#endif /* IMPLEMENTATION_TOOLS */ #ifndef __DIMENSION_T_H__ #define __DIMENSION_T_H__ @@ -367,6 +368,7 @@ GEN_HEAD_PTR_LIST(ptr_DIMENSION) #define min(x,y) (((x)<(y))?(x):(y)) #endif +#ifndef IMPLEMENTATION_DIMENSION #define IMPLEMENTATION_DIMENSION()\ \ bool littleEndian=true;\ @@ -786,4 +788,5 @@ GEN_FUNC_PTR_LIST_FREE(ptr_DIMENSION){\ }\ \ +#endif /* IMPLEMENTATION_DIMENSION */