cbase.h

来自「Qt4源代码,详细介绍了Qt4编程中的范例」· C头文件 代码 · 共 35 行

H
35
字号

#ifndef __CBASE__
#define __CBASE__
 

    typedef long long __int64;
    typedef unsigned char byte;
    const unsigned long INFINITE = 0xFFFFFFFFul; // Infinite timeout
    const long INVALID_SOCKET = -1;
    const  long SOCKET_ERROR = -1;
    unsigned long GetTickCount(void);
    unsigned long GetCurrentThreadId(void);

#   define Sleep(s) usleep((long)s*1000)
#   define Random random
#   define closesocket(s) close(s)
#   include <sys/ioctl.h>
#   include <sys/socket.h>
#   include <sys/time.h>
#   include <sys/types.h>
#   include <netinet/in.h>
#   include <arpa/inet.h>
#   include <netdb.h>
#   include <fcntl.h>
#   include <unistd.h>
#   include <pthread.h>
#   include <signal.h>
#   include <errno.h>
#   define __stdcall
#endif




⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?