Prevent building tomlplusplus libs in subproject

This is supposed to be disabled by default, but it isn't.
This commit is contained in:
Robbert van der Helm
2023-02-21 14:42:24 +01:00
parent e937bfb2dc
commit 4ea0530a37
2 changed files with 1 additions and 10 deletions
-9
View File
@@ -33,34 +33,25 @@
// errors and we don't need them so we'll just disable them outright. Disabling
// `TOML_ENABLE_WINDOWS_COMPAT` is no longer enough, and you can't disable
// `TOML_WINDOWS` directly. This is the same trick used in `use-asio-linux.h`.
#ifdef __WINE__
#pragma push_macro("WIN32")
#pragma push_macro("_WIN32")
#pragma push_macro("__WIN32__")
#pragma push_macro("__NT__")
#pragma push_macro("__CYGWIN__")
#undef WIN32
#undef _WIN32
#undef __WIN32__
#undef __NT__
#undef __CYGWIN__
#endif
#include <toml++/toml.h>
#ifdef __WINE__
#pragma pop_macro("WIN32")
#pragma pop_macro("_WIN32")
#pragma pop_macro("__WIN32__")
#pragma pop_macro("__NT__")
#pragma pop_macro("__CYGWIN__")
#endif
#include "utils.h"
namespace fs = ghc::filesystem;