Skip to content

Conversation

@AugustinRochereau
Copy link

@arves100

  • localtime_r to localtime_s on Linux/OS X systems
  • REGISTER macro
  • CMake adjustment
  • removed build/ in .gitignore

@@ -63,6 +63,15 @@ std::string Utils::RandomAccountID()
return r;
}

void GetLocalTime(struct tm& timeinfo, time_t& rawtime)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer to use localtime_r and then #define for localtime_s (or make this function constexpr if possible)

set(CMAKE_CXX_STANDARD 17)

if (NOT DEFINED GIMUSRV_FRONTEND)
set(GIMUSRV_FRONTEND "STANDALONE")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make a new CMake preset for your target platform (which uses the VCPKG_ROOT env variable) rather than allowing the build to work without a specific frontend preset.

@arves100
Copy link
Member

arves100 commented Mar 2, 2025

Please address the reviews and merge the last changes on the repo, the code builds fine under Windows so I will merge it once the conflicts are resolved, thanks!

@Seltraeh
Copy link
Contributor

I can do this but since I don't have a macOS, I wouldn't be able to test. I'm sure plenty of things will break though... It's never easy

@AugustinRochereau
Copy link
Author

AugustinRochereau commented Mar 19, 2025

I can do this but since I don't have a macOS, I wouldn't be able to test. I'm sure plenty of things will break though... It's never easy

I'm running on macOS, I should be able to sort it out. I just have not found the time to do it yet 👍. Its not needed in anyway for Windows, I just thought of this so that I could build the server on my laptop.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants