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