-
Notifications
You must be signed in to change notification settings - Fork 177
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
OpenBSD compatibility #169
base: 3.x
Are you sure you want to change the base?
Changes from all commits
1897c3d
475f83d
d0433a2
a651c46
3b025ef
95ae99c
b02e224
c12cf6d
d572961
5340749
eccfee1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,6 +58,11 @@ static GU_FORCE_INLINE uint64_t GU_ROTL64 (uint64_t x, int8_t r) | |
# define gu_bswap16 __bswap16_var | ||
# define gu_bswap32 __bswap32_var | ||
# define gu_bswap64 __bswap64_var | ||
#elif defined(__OpenBSD__) | ||
#include <endian.h> | ||
#define gu_bswap16(x) __swap16(x) | ||
#define gu_bswap32(x) __swap32(x) | ||
#define gu_bswap64(x) __swap64(x) | ||
#elif defined(__sun__) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Robert used the swapX macros. Wonder if that makes more sense as they use the bswapX macros further down. |
||
# define gu_bswap16 BSWAP_16 | ||
# define gu_bswap32 BSWAP_32 | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,5 +32,11 @@ | |
#ifndef ENODATA | ||
# define ENODATA (GU_ELAST+6) | ||
#endif | ||
#ifndef EPROTO | ||
# define EPROTO (GU_ELAST+7) | ||
#endif | ||
#ifndef EBADMSG | ||
# define EBADMSG (GU_ELAST+8) | ||
#endif | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This patch can be removed as it is no longer necessary. |
||
#endif /* GU_STR_H */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This patch should be removed since it is no longer relevant.