diff options
Diffstat (limited to 'include/remote/win/sys/types.h')
-rw-r--r-- | include/remote/win/sys/types.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/remote/win/sys/types.h b/include/remote/win/sys/types.h new file mode 100644 index 00000000..7b131f6e --- /dev/null +++ b/include/remote/win/sys/types.h @@ -0,0 +1,19 @@ +// This is an incomplete & imprecice implementation of the Posix +// standard file by the same name + + +// Since this is only intended for VC++ compilers +// use #pragma once instead of guard macros +#pragma once + +#ifdef _MSC_VER // Only for cross compilation to windows + +// Posix is a superset of the ISO C sys/types +// include ISO C version first +#include <../ucrt/sys/types.h> +#include <stddef.h> + +typedef int pid_t; +typedef ptrdiff_t ssize_t; + +#endif // _MSC_VER |