Skip to content

Commit

Permalink
some minor tweaks to help OSX build thanks to Alexandre Feblot!
Browse files Browse the repository at this point in the history
  • Loading branch information
eteran committed Feb 10, 2018
1 parent a91ea0a commit 27e11d4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Util/include/Util/string_view.h
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,14 @@ struct hash_constants<uint32_t>{
static constexpr uint32_t FNV_prime = 16777619;
};

#ifdef Q_OS_MACOS
template <>
struct hash_constants<unsigned long>{
static constexpr uint32_t FNV_offset_basis = 0x811c9dc5;
static constexpr uint32_t FNV_prime = 16777619;
};
#endif

}

namespace std {
Expand Down
2 changes: 2 additions & 0 deletions import/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ find_package(Qt5 5.4.0 REQUIRED Core Xml)
find_package(X11 REQUIRED)
find_package(Boost 1.35 REQUIRED)

link_directories(${X11_LIBRARY_DIR})

add_executable(nedit-import
import.cpp
)
Expand Down

0 comments on commit 27e11d4

Please sign in to comment.