22 lines
434 B
C++
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
|