summaryrefslogtreecommitdiff
path: root/src/debugmacro.h
diff options
context:
space:
mode:
authorweiguo <liwg06@foxmail.com>2022-02-07 12:13:34 +0800
committerGitHub <noreply@github.com>2022-02-06 20:13:34 -0800
commitd6e9cde595de635b9f895a978b5c79e8996f66db (patch)
treeae443daf0da41ccdc1f3b481e3aa8f430091cddb /src/debugmacro.h
parent98b3f52599cc3106ddc882d0dcc744bcaf9e0264 (diff)
downloadredis-d6e9cde595de635b9f895a978b5c79e8996f66db.tar.gz
Supplement define guards to prevent multiple inclusion (#10246)
Diffstat (limited to 'src/debugmacro.h')
-rw-r--r--src/debugmacro.h5
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_ */