mirror of
https://github.com/HarbourMasters/Shipwright
synced 2026-10-13 15:33:53 -04:00
Include <version> before checking __cpp_lib_source_location (#7233)
GCC 15's libstdc++ defines feature-test macros selectively: after #include <string>, __cpp_lib_source_location is not yet defined, even though __builtin_source_location is fully supported. This made the check fail on GCC 15 toolchains (including clang using libstdc++), disabling the Hook Debugger. Include <version> first so all feature-test macros are defined.
This commit is contained in:
@@ -89,6 +89,7 @@ void GameInteractor_SetTriforceHuntCreditsWarpActive(bool state);
|
||||
#include <cstring>
|
||||
#include <string>
|
||||
|
||||
#include <version>
|
||||
#ifdef __cpp_lib_source_location
|
||||
#include <source_location>
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user