The cmake CMakeLists.txt file has logic for including or excluding certain
compilation units based on the platform: Windows, Linux or Mac OS X.
Other build systems are not as clever, it is convenient to also wrap
platform-specifics with #ifdef _WIN32 ... #endif to keep things simple on
the build side.
*
**************************************************************************/
+#ifndef _WIN32
#include <assert.h>
#include <string.h>
} /* namespace os */
+#endif // !defined(_WIN32)
*
**************************************************************************/
+#ifdef _WIN32
+
#include <windows.h>
#include <assert.h>
sep = ' ';
}
- STARTUPINFO startupInfo;
+ STARTUPINFOA startupInfo;
memset(&startupInfo, 0, sizeof(startupInfo));
startupInfo.cb = sizeof(startupInfo);
} /* namespace os */
+
+#endif // defined(_WIN32)
* Auxiliary functions to compute the size of array/blob arguments.
*/
+#ifndef _WIN32
+
#include <string.h>
#include "os_thread.hpp"
delete info;
}
+#endif // !defined(_WIN32)
#ifndef _EGLSIZE_HPP_
#define _EGLSIZE_HPP_
+#ifndef _WIN32
#include "glimports.hpp"
void
_EGLImageKHR_free_image_info(struct image_info *info);
+#endif // !defined(_WIN32)
#endif