summaryrefslogtreecommitdiff
path: root/src/Companion.cpp
diff options
context:
space:
mode:
authorKenix3 <kenixwhisperwind@gmail.com>2023-11-17 09:39:13 -0500
committerGitHub <noreply@github.com>2023-11-17 08:39:13 -0600
commita71c9b187f5df8ed3b25f176699405d3e59bd4c9 (patch)
treef962cbe1bbebd3ac430b72addccc152b9aa4bb4f /src/Companion.cpp
parent0700ca68b1f3656a54ba15498152c55299451dae (diff)
Windows issues (#13)
* Fix build errors in MSVS. * Fixes issues in types for light factory.
Diffstat (limited to 'src/Companion.cpp')
-rw-r--r--src/Companion.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Companion.cpp b/src/Companion.cpp
index 761f2eb..5780d29 100644
--- a/src/Companion.cpp
+++ b/src/Companion.cpp
@@ -329,7 +329,7 @@ void Companion::Process() {
std::ofstream file(output, std::ios::binary);
if(gExporterType == ExportType::Header) {
- std::string symbol = entry.path().stem();
+ std::string symbol = entry.path().stem().string();
std::transform(symbol.begin(), symbol.end(), symbol.begin(), toupper);
file << "#ifndef " << symbol << "_H" << std::endl;
file << "#define " << symbol << "_H" << std::endl << std::endl;