#ifndef _WINHELPER_H #define _WINHELPER_H #ifdef _WIN32 static constexpr int RTLD_LAZY = 1; void* dlopen(const char*, int); void* dlsym(void*, const char*); int dlclose(void*); int dlerror(); struct SharedMemory { void* hFileMap; void* pData; SharedMemory(const char*); void FreeMemoryMap(); }; #ifndef __USE_STD_SEMAPHORE__ class A_Semaphore { private: void* native_handle; public: A_Semaphore(); void acquire(); void release(); ~A_Semaphore(); }; #endif #endif