23 #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 60 #include <sys/param.h> 64 #include <crt_externs.h> 65 #define environ (*_NSGetEnviron()) 66 #elif !defined(_WIN32) 67 extern "C" char** environ;
73 static inline void setZero(
void* ptr,
const size_t size)
76 ::memset(ptr, 0, size);
86 #endif // LUNCHBOX_OS_H Defines export visibility macros for library Lunchbox.
std::string getHostname()
static void setZero(void *ptr, const size_t size)
OS-independent call to bzero(3).
Includes compile-time defines of Lunchbox.
Abstraction layer and common utilities for multi-threaded programming.