提交 7e4a69de 编写于 作者: Y yuqing

#include <stdbool.h> to use C99 bool

上级 4ad15b09
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 <stdbool.h> to use C99 bool
Version 1.05 2012-07-08
* update source code from FastDFS V3.09
......
......@@ -27,6 +27,7 @@ typedef DWORD (WINAPI *ThreadEntranceFunc)(LPVOID lpThreadParameter);
#include <unistd.h>
#include <signal.h>
#include <stdbool.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/types.h>
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册