Browse Source

Fix Mac build

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
4c4fdb883c
2 changed files with 6 additions and 6 deletions
  1. +4
    -4
      adapters/standalone.cpp
  2. +2
    -2
      include/random.hpp

+ 4
- 4
adapters/standalone.cpp View File

@@ -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



+ 2
- 2
include/random.hpp View File

@@ -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;
}



Loading…
Cancel
Save