From b3e757dcdc77ea17136afcc401082002af96f38c Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Mon, 26 May 2025 14:20:20 -0700 Subject: [PATCH] add Windows platform wrapper --- src/WindowsPlatform.hh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/WindowsPlatform.hh diff --git a/src/WindowsPlatform.hh b/src/WindowsPlatform.hh new file mode 100644 index 00000000..403d03be --- /dev/null +++ b/src/WindowsPlatform.hh @@ -0,0 +1,15 @@ +#pragma once + +// defines a lot of annoying things like ERROR and DELETE, which +// we use as names in enum classes, so we wrap with this header +// that undoes some of these annoying things. + +#include + +#ifdef PHOSG_WINDOWS +#define WIN32_LEAN_AND_MEAN +#include +#undef DELETE +#undef ERROR +#undef PASSTHROUGH +#endif