Supplement define guards to prevent multiple inclusion (#10246)

This commit is contained in:
weiguo 2022-02-07 12:13:34 +08:00 committed by GitHub
parent 98b3f52599
commit d6e9cde595
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -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_ */