EHS/include/ehs/system/OS.h
Karutoh bcd71cf2b5
All checks were successful
Build & Release / Windows-AMD64-Build (push) Successful in 1m8s
Build & Release / Linux-AMD64-Build (push) Successful in 1m30s
Build & Release / Linux-AARCH64-Build (push) Successful in 3m21s
Adjusted workflow.
2024-02-05 22:25:30 -08:00

27 lines
520 B
C

#pragma once
#if defined(_WIN32) || defined(_WIN64)
#define EHS_OS_WINDOWS
#define EHS_FILE __FILE__
#define EHS_FUNC __FUNCTION__
#define EHS_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 EHS_OS_LINUX
#define EHS_FILE __FILE__
#define EHS_FUNC __FUNCTION__
#define EHS_LINE __LINE__
typedef int Handle;
#endif