ola icon indicating copy to clipboard operation
ola copied to clipboard

Fix build for macOS where endian.h is not available

Open cho-m opened this issue 1 year ago • 0 comments

It is possible other platforms were impacted as the header/functions aren't that portable.

Specific errors:

common/network/NetworkUtils.cpp:166:2: error: "No be64toh for NetworkToHost, please report this."
  166 | #error "No be64toh for NetworkToHost, please report this."
      |  ^
common/network/NetworkUtils.cpp:182:2: error: "No be64toh for NetworkToHost, please report this."
  182 | #error "No be64toh for NetworkToHost, please report this."
      |  ^
common/network/NetworkUtils.cpp:206:2: error: "No htobe64 for HostToNetwork, please report this."
  206 | #error "No htobe64 for HostToNetwork, please report this."
      |  ^
common/network/NetworkUtils.cpp:214:2: error: "No htobe64 for HostToNetwork, please report this."
  214 | #error "No htobe64 for HostToNetwork, please report this."
      |  ^
4 errors generated.

cho-m avatar Nov 13 '24 23:11 cho-m