在工作中常用的幾個宏定義
1 幾個#ifndef連用
#ifndef _WIN32
#ifndef Sleep(n)
#define Sleep(n) usleep((n)*1000)
#endif
#endif
2 幾個#if defined連用的定義
#if defined(__WIN32__) || defined(_WIN32) || defined(_WIN32_WCE)
#define ECONNREFUSED WSAECONNREFUSED
#define EAGAIN WSAEWOULDBLOCK
#define EINTR WSAEINTR
#endif
3 所包含的裏面的內容不會被編譯
#if 0
#endif