File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed
Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff 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
152155set (INSTALL_LIB_DIR lib CACHE PATH "Installation directory for libraries" )
153156set (INSTALL_INCLUDE_DIR include CACHE PATH "Installation directory for header files" )
Original file line number Diff line number Diff line change @@ -49,9 +49,6 @@ foreach(p BIN INCLUDE CMAKE)
4949 endif ()
5050endforeach ()
5151
52- # Icon
53- set (ATHENA_ICO ${CMAKE_CURRENT_SOURCE_DIR} /Athena.ico)
54-
5552# Windows resource
5653if (WIN32 )
5754 configure_file (main.rc.in main.rc @ONLY)
Original file line number Diff line number Diff line change @@ -177,7 +177,11 @@ inline std::unique_ptr<YAMLNode> ValToNode(const atUint32& val)
177177template <>
178178inline 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
183187template <>
@@ -193,7 +197,11 @@ inline std::unique_ptr<YAMLNode> ValToNode(const atInt64& val)
193197template <>
194198inline 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
199207template <>
You can’t perform that action at this time.
0 commit comments