solidc
Robust collection of general-purpose cross-platform C libraries and data structures designed for rapid and safe development in C
Loading...
Searching...
No Matches
platform.h
Go to the documentation of this file.
1#ifndef SOLIDC_PLATFORM_H
2#define SOLIDC_PLATFORM_H
3
9// Windows-specific type definitions
10#ifdef _WIN32
11#include <windows.h>
12// ssize_t is not defined in Windows
13#ifndef _SSIZE_T_DEFINED
14#define _SSIZE_T_DEFINED
15typedef SSIZE_T ssize_t;
16#endif
17
18#else
19// POSIX systems have ssize_t in sys/types.h
20#include <sys/types.h>
21#endif
22
23#endif /* SOLIDC_PLATFORM_H */