From 7e4a69deb112d6c2274bcec966f15e54240b64d7 Mon Sep 17 00:00:00 2001 From: yuqing Date: Wed, 18 Jun 2014 16:28:55 +0800 Subject: [PATCH] #include to use C99 bool --- HISTORY | 3 ++- src/common_define.h | 9 +-------- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/HISTORY b/HISTORY index 4bea702..608b33f 100644 --- a/HISTORY +++ b/HISTORY @@ -1,5 +1,5 @@ -Version 1.06 2014-06-17 +Version 1.06 2014-06-18 * update source code from FastDFS V5.02 * add function short2buff and buff2short * add object memory pool (fast_mblock.h and fast_mblock.c) @@ -10,6 +10,7 @@ Version 1.06 2014-06-17 * logger can set rotate time format * add connection pool * logger can log header line + * #include to use C99 bool Version 1.05 2012-07-08 * update source code from FastDFS V3.09 diff --git a/src/common_define.h b/src/common_define.h index 5cb8128..3a4bd2b 100644 --- a/src/common_define.h +++ b/src/common_define.h @@ -27,6 +27,7 @@ typedef DWORD (WINAPI *ThreadEntranceFunc)(LPVOID lpThreadParameter); #include #include +#include #include #include #include @@ -89,14 +90,6 @@ extern int pthread_mutexattr_settype(pthread_mutexattr_t *attr, int kind); #define IP_ADDRESS_SIZE 16 #define INFINITE_FILE_SIZE (256 * 1024LL * 1024 * 1024 * 1024 * 1024LL) -#ifndef __cplusplus -#ifndef true -typedef char bool; -#define true 1 -#define false 0 -#endif -#endif - #ifndef byte #define byte signed char #endif -- GitLab