8000 OpenBSD build fixes by jonathangray · Pull Request #90 · svkaiser/Doom64EX · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

OpenBSD build fixes #90

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions include/imp/util/Endian
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,26 @@ namespace imp {
inline uint64 swap_bytes(uint64 x) noexcept
{ return OSSwapInt64(x); }
}
#elif defined(__OpenBSD__)
namespace imp {
inline int16 swap_bytes(int16 x) noexcept
{ return swap16(x); }

inline uint16 swap_bytes(uint16 x) noexcept
{ return swap16(x); }

inline int32 swap_bytes(int32 x) noexcept
{ return swap32(x); }

inline uint32 swap_bytes(uint32 x) noexcept
{ return swap32(x); }

inline int64 swap_bytes(int64 x) noexcept
{ return swap64(x); }

inline uint64 swap_bytes(uint64 x) noexcept
{ return swap64(x); }
}
#elif defined(__GNUC__) || defined(__clang__)
namespace imp {
inline int16 swap_bytes(int16 x) noexcept
Expand Down
2 changes: 1 addition & 1 deletion src/engine/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ else()
system/i_cpu_posix.cc)

set(PLATFORM_LIBRARIES
dl
${CMAKE_DL_LIBS}
m)

endif()
Expand Down
0