Skip to content

Conversation

@arthurggordon
Copy link

Added diagrams...


#if HAVE_BYTESWAP_H
#include <byteswap.h>
#else
Copy link
Contributor

@kozyilmaz kozyilmaz May 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this for macOS? There are multiple changes related to byteswap.h in the PR and there is a replacement header that I use for macOS:

$ cat byteswap.h

#ifndef __BYTESWAP_H__
#define __BYTESWAP_H__

#ifdef __cplusplus
extern "C" {
#endif //__cplusplus

// Mac OS X / Darwin features
#include <libkern/OSByteOrder.h>
#define __bswap_16(x) OSSwapInt16(x)
#define __bswap_32(x) OSSwapInt32(x)
#define __bswap_64(x) OSSwapInt64(x)

#ifdef __cplusplus
}
#endif //__cplusplus
#endif // __BYTESWAP_H__

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants