[compilers] Fix c/c++ compilation warnings and errors

This commit is contained in:
tyx
2022-04-02 16:21:45 +08:00
committed by guo
parent e896021b56
commit b80f581562
11 changed files with 68 additions and 3 deletions

View File

@@ -15,6 +15,10 @@
#include <winsock.h>
#endif
#ifdef __cplusplus
extern "C" {
#endif
struct winsize
{
unsigned short ws_row;
@@ -271,4 +275,8 @@ struct winsize
int ioctl(int fildes, int cmd, ...);
#ifdef __cplusplus
}
#endif
#endif