EHS/include/System/OS.h
2023-12-17 03:29:08 -08:00

27 lines
520 B
C

#pragma once
#if defined(_WIN32) || defined(_WIN64)
#define LWE_OS_WINDOWS
#define LWE_FILE __FILE__
#define LWE_FUNC __FUNCTION__
#define LWE_LINE __LINE__
#ifndef NOMINMAX
#define NOMINMAX
#endif
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#include <Windows.h>
typedef void* Handle;
#elif defined(__linux__)
#define LWE_OS_LINUX
#define LWE_FILE __FILE__
#define LWE_FUNC __FUNCTION__
#define LWE_LINE __LINE__
typedef int Handle;
#endif