Skip to content
Snippets Groups Projects
Commit 7497bf2b authored by dmitriy.gerasimov's avatar dmitriy.gerasimov
Browse files

[*] Fixed some macroses for BSD

[*] Fixed OS detection
parent f1c3b0a8
No related branches found
No related tags found
No related merge requests found
Pipeline #7167 passed with stage
in 12 seconds
......@@ -47,8 +47,6 @@ if(UNIX)
if (APPLE)
add_definitions ("-DDAP_OS_DARWIN -DDARWIN -DDAP_OS_BSD")
set(DARWIN ON)
else()
add_definitions ("-DDAP_OS_LINUX")
endif()
if (${CMAKE_SYSTEM_NAME} MATCHES "BSD" )
......
......@@ -50,14 +50,29 @@
# include <sys/endian.h>
#if !defined(be16toh)
# define be16toh(x) betoh16(x)
#endif
#if !defined(le16toh)
# define le16toh(x) letoh16(x)
#endif
#if !defined(be32toh)
# define be32toh(x) betoh32(x)
#endif
#if !defined(le32toh)
# define le32toh(x) letoh32(x)
#endif
#if !defined(be64toh)
# define be64toh(x) betoh64(x)
#endif
#if !defined(le64toh)
# define le64toh(x) letoh64(x)
#endif
#elif defined(__WINDOWS__)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment