window linux 头文件

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#ifndef _PLATFORMDEF_H_
#define _PLATFORMDEF_H_
 
 
 
#ifdef _LINUX
#include <sys/time.h>
#include <unistd.h>   /* SHOULD be before any other include files     */
#include <malloc.h>
#include <stdio.h>
#include <string.h>
#include <time.h>
#include <stdlib.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <stdarg.h>
#include <fcntl.h>        /* open, O_RDONLY, O_WRONLY, etc.   */
#include <ctype.h>
#include <limits.h>
#include <signal.h>       /* for "kill", etc.     */
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <netdb.h>        /* gethostbyname, etc.          */
#include <netinet/in.h>       /* IPPROTO_*, etc.          */
#include <sys/un.h>       /* for sockaddr_un          */
#include <arpa/inet.h>        /* inet_addr, etc.          */
#include <netinet/tcp.h>  /* TCP_NODELAY, etc.            */
#include <pthread.h>
#include <dirent.h>
#include <math.h>
#include <execinfo.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <sys/wait.h>
#include <sys/reboot.h>
#include<sys/mount.h>
#ifndef INVALID_SOCKET
#define SOCKET int
#define INVALID_SOCKET -1
#endif
 
#define CM_MSSLEEP(t)  usleep(t*1000)
 
#elif _WIN32
 
#pragma warning(disable: 4996)
 
#include <io.h>
#include <WinSock2.h>
#include <windows.h>
#include <process.h>      /* for _beginthread, _endthread */
#include <stdio.h>
#include <malloc.h>
#include <string.h>
#include <time.h>
#include <stdlib.h>
#include <stdarg.h>
#include <ctype.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <limits.h>
#include <conio.h>
#include <fcntl.h>
#include <math.h>
 
#if !defined(__cplusplus)
#define inline __inline
#endif
#endif

 

posted on   lydstory  阅读(178)  评论(0编辑  收藏  举报

编辑推荐:
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
历史上的今天:
2020-03-01 QTabWidget
2020-03-01 lineedit获取值
2019-03-01 plc
2019-03-01 zip多个分割文件合并

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示