diff options
author | weiguo <liwg06@foxmail.com> | 2022-02-07 12:13:34 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-06 20:13:34 -0800 |
commit | d6e9cde595de635b9f895a978b5c79e8996f66db (patch) | |
tree | ae443daf0da41ccdc1f3b481e3aa8f430091cddb | |
parent | 98b3f52599cc3106ddc882d0dcc744bcaf9e0264 (diff) | |
download | redis-d6e9cde595de635b9f895a978b5c79e8996f66db.tar.gz |
Supplement define guards to prevent multiple inclusion (#10246)
-rw-r--r-- | src/debugmacro.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 <stdio.h> #define D(...) \ do { \ @@ -39,3 +42,5 @@ fprintf(fp,"\n"); \ fclose(fp); \ } while (0) + +#endif /* _REDIS_DEBUGMACRO_H_ */ |