Skip to content

Commit f06afb4

Browse files
committed
Windows build fixes
1 parent 3d22084 commit f06afb4

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,9 @@ add_library(AthenaZelda
148148
include/Athena/SkywardSwordQuest.hpp
149149
)
150150

151+
# Icon
152+
set(ATHENA_ICO ${CMAKE_CURRENT_SOURCE_DIR}/Athena.ico)
153+
151154
# Offer the user the choice of overriding the installation directories
152155
set(INSTALL_LIB_DIR lib CACHE PATH "Installation directory for libraries")
153156
set(INSTALL_INCLUDE_DIR include CACHE PATH "Installation directory for header files")

atdna/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,6 @@ foreach(p BIN INCLUDE CMAKE)
4949
endif()
5050
endforeach()
5151

52-
# Icon
53-
set(ATHENA_ICO ${CMAKE_CURRENT_SOURCE_DIR}/Athena.ico)
54-
5552
# Windows resource
5653
if(WIN32)
5754
configure_file(main.rc.in main.rc @ONLY)

include/Athena/DNAYaml.hpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,11 @@ inline std::unique_ptr<YAMLNode> ValToNode(const atUint32& val)
177177
template <>
178178
inline atInt64 NodeToVal(const YAMLNode* node)
179179
{
180+
#if _WIN32
181+
return _strtoi64(node->m_scalarString.c_str(), NULL, 0);
182+
#else
180183
return strtoq(node->m_scalarString.c_str(), NULL, 0);
184+
#endif
181185
}
182186

183187
template <>
@@ -193,7 +197,11 @@ inline std::unique_ptr<YAMLNode> ValToNode(const atInt64& val)
193197
template <>
194198
inline atUint64 NodeToVal(const YAMLNode* node)
195199
{
200+
#if _WIN32
201+
return _strtoui64(node->m_scalarString.c_str(), NULL, 0);
202+
#else
196203
return strtouq(node->m_scalarString.c_str(), NULL, 0);
204+
#endif
197205
}
198206

199207
template <>

0 commit comments

Comments
 (0)