2024-05-23 09:37:41 +08:00
|
|
|
// 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
|
|
|
|
|
2025-06-20 23:38:34 +08:00
|
|
|
#include "../macro/os_detector.hpp"
|
2024-04-25 10:38:13 +08:00
|
|
|
|
2025-07-23 10:18:01 +08:00
|
|
|
#if defined(YYCC_OS_WINDOWS)
|
2024-04-25 10:38:13 +08:00
|
|
|
|
2025-08-05 10:54:15 +08:00
|
|
|
// Windows also will generate following macros which may cause
|
|
|
|
// the function sign is different in Windows and other platforms.
|
2024-04-29 15:48:10 +08:00
|
|
|
// So we simply remove them.
|
2025-08-05 10:54:15 +08:00
|
|
|
// At the same time, because `#undef` will not throw error if there are no matched macro,
|
|
|
|
// we can simply use `#undef` to remove them directly.
|
2024-04-29 15:48:10 +08:00
|
|
|
#undef GetObject
|
|
|
|
#undef GetClassName
|
|
|
|
#undef LoadImage
|
|
|
|
#undef GetTempPath
|
2024-06-15 16:59:54 +08:00
|
|
|
#undef GetModuleFileName
|
2024-08-13 09:38:12 +08:00
|
|
|
#undef CopyFile
|
|
|
|
#undef MoveFile
|
|
|
|
#undef DeleteFile
|
2024-04-25 10:38:13 +08:00
|
|
|
|
2025-06-20 23:38:34 +08:00
|
|
|
#endif
|