From 4c4fdb883cfa759f56d2ba4c662388892c86ad6b Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Fri, 9 Jul 2021 13:37:57 -0400 Subject: [PATCH] Fix Mac build --- adapters/standalone.cpp | 8 ++++---- include/random.hpp | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/adapters/standalone.cpp b/adapters/standalone.cpp index e34779ea..14953d59 100644 --- a/adapters/standalone.cpp +++ b/adapters/standalone.cpp @@ -195,10 +195,10 @@ int main(int argc, char* argv[]) { #if defined ARCH_MAC // For some reason, launching from the command line sets glfwGetOpenedFilenames(), so make sure we're running the app bundle. if (asset::bundlePath != "") { - const char* const* openedFilenames = glfwGetOpenedFilenames(); - if (openedFilenames && openedFilenames[0]) { - patchPath = openedFilenames[0]; - } + // const char* const* openedFilenames = glfwGetOpenedFilenames(); + // if (openedFilenames && openedFilenames[0]) { + // patchPath = openedFilenames[0]; + // } } #endif diff --git a/include/random.hpp b/include/random.hpp index 9be3b5e1..36e5356f 100644 --- a/include/random.hpp +++ b/include/random.hpp @@ -52,10 +52,10 @@ struct Xoroshiro128Plus { return result; } - constexpr uint64_t min() { + constexpr uint64_t min() const { return 0; } - constexpr uint64_t max() { + constexpr uint64_t max() const { return UINT64_MAX; }