From d6e9cde595de635b9f895a978b5c79e8996f66db Mon Sep 17 00:00:00 2001 From: weiguo Date: Mon, 7 Feb 2022 12:13:34 +0800 Subject: [PATCH] Supplement define guards to prevent multiple inclusion (#10246) --- src/debugmacro.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/debugmacro.h b/src/debugmacro.h index 58e6577e5..dcd79a33f 100644 --- a/src/debugmacro.h +++ b/src/debugmacro.h @@ -30,6 +30,9 @@ * POSSIBILITY OF SUCH DAMAGE. */ +#ifndef _REDIS_DEBUGMACRO_H_ +#define _REDIS_DEBUGMACRO_H_ + #include #define D(...) \ do { \ @@ -39,3 +42,5 @@ fprintf(fp,"\n"); \ fclose(fp); \ } while (0) + +#endif /* _REDIS_DEBUGMACRO_H_ */