From 50d03e28fc4ab1b7b6194006a7bbbb210f8aa19f Mon Sep 17 00:00:00 2001 From: Ratstail91 Date: Mon, 12 Jun 2023 00:05:24 +1000 Subject: [PATCH] Fixed MSVC compilation --- Repl.vcxproj | 6 ++---- source/toy_common.h | 4 ++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Repl.vcxproj b/Repl.vcxproj index 4d736c2..555ef5c 100644 --- a/Repl.vcxproj +++ b/Repl.vcxproj @@ -115,15 +115,13 @@ $(SolutionDir)/source;%(AdditionalIncludeDirectories) stdc17 - - + %(PreprocessorDefinitions) stdc17 - - + %(PreprocessorDefinitions) $(SolutionDir)/source;%(AdditionalIncludeDirectories) diff --git a/source/toy_common.h b/source/toy_common.h index 7cabfbe..a1c45b2 100644 --- a/source/toy_common.h +++ b/source/toy_common.h @@ -9,8 +9,6 @@ #define TOY_VERSION_PATCH 5 #define TOY_VERSION_BUILD Toy_private_version_build() -const char* Toy_private_version_build(); - //platform/compiler-specific instructions #if defined(__linux__) || defined(__MINGW32__) || defined(__GNUC__) @@ -30,6 +28,8 @@ const char* Toy_private_version_build(); #endif +TOY_API const char* Toy_private_version_build(); + #ifndef TOY_DISABLE_REPL //for processing the command line arguments in the repl