Files
psopeeps-newserv/src/WindowsPlatform.hh
T
Martin Michelsen 0575f3c9cf fix windows build
2025-09-02 21:34:19 -07:00

22 lines
434 B
C++

#pragma once
// <windows.h> defines a lot of annoying things like ERROR and DELETE, which
// we use as names in enum classes, so we wrap <windows.h> with this header
// that undoes some of these annoying things.
#include <phosg/Platform.hh>
#ifdef PHOSG_WINDOWS
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#ifdef DELETE
#undef DELETE
#endif
#ifdef ERROR
#undef ERROR
#endif
#ifdef PASSTHROUGH
#undef PASSTHROUGH
#endif
#endif