YYCCommonplace/src/WinImportSuffix.hpp

23 lines
644 B
C++
Raw Normal View History

// It is by design that no pragma once or #if to prevent deplicated including.
// Because this header is the part of wrapper, not a real header.
// #pragma once
2024-04-25 10:38:13 +08:00
#include "YYCCInternal.hpp"
#if YYCC_OS == YYCC_OS_WINDOWS
2024-04-29 15:48:10 +08:00
// Windows also will generate following macros
// which may cause the function sign is different in Windows and other platforms.
// So we simply remove them.
// Because #undef will not throw error if there are no matched macro,
// so we simply #undef them directly.
2024-04-29 15:48:10 +08:00
#undef GetObject
#undef GetClassName
#undef LoadImage
#undef GetTempPath
#undef GetModuleFileName
#undef CopyFile
#undef MoveFile
#undef DeleteFile
2024-04-25 10:38:13 +08:00
#endif