mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-07-28 09:37:20 +02:00

* Build fix with MinGW GCC 9.2.0 * Fix MinGW tripplets Fixes #12065 * clang-format * Fix unused read_symlink_implementation warning marked as error read_symlink_implementation was used only in copy_symlink_implementation when #if defined(_WIN32) && !VCPKG_USE_STD_FILESYSTEM was true. Removed the warning otherwise. Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com>
41 lines
673 B
C
41 lines
673 B
C
#pragma once
|
|
|
|
#if defined(_WIN32)
|
|
|
|
#ifndef NOMINMAX
|
|
#define NOMINMAX
|
|
#endif
|
|
|
|
#ifndef WIN32_LEAN_AND_MEAN
|
|
#define WIN32_LEAN_AND_MEAN
|
|
#endif
|
|
|
|
#pragma warning(suppress : 4768)
|
|
#include <windows.h>
|
|
|
|
#pragma warning(suppress : 4768)
|
|
#include <Shlobj.h>
|
|
|
|
#else // ^^^^ Windows / Unix vvvv
|
|
|
|
// 2020-05-19: workaround for a c standard library bug
|
|
// ctermid is not behind an `extern "C"` barrier, so it's linked incorrectly.
|
|
// This has been reported; remove it after 2023-05-19
|
|
#if __APPLE__
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
#include <unistd.h>
|
|
|
|
#if __APPLE__
|
|
}
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#include <sys/types.h>
|
|
// glibc defines major and minor in sys/types.h, and should not
|
|
#undef major
|
|
#undef minor
|