24 #include <lunchbox/compiler.h>
34 # define USE_SYS_TYPES_FD_SET
36 # ifndef _WIN32_WINNT // Hopefully to higher than 0x500...
37 # define _WIN32_WINNT 0x501 // => XP, for WM_XBUTTONDOWN and others
39 # ifndef _USE_MATH_DEFINES
40 # define _USE_MATH_DEFINES
42 # ifndef WIN32_LEAN_AND_MEAN
43 # define WIN32_LEAN_AND_MEAN
48 # include <winsock2.h>
60 # include <sys/param.h>
65 # include <crt_externs.h>
66 # define environ (*_NSGetEnviron())
67 #elif !defined(_WIN32)
68 extern "C" char **environ;
74 static inline void setZero(
void* ptr,
const size_t size )
77 ::memset( ptr, 0, size );
87 #endif //LUNCHBOX_OS_H
Defines export visibility macros for library Lunchbox.
static void setZero(void *ptr, const size_t size)
OS-independent call to bzero(3).
Includes compile-time defines of Lunchbox.
LUNCHBOX_API std::string getHostname()
Abstraction layer and common utilities for multi-threaded programming.