17 #ifndef __RIPLEY_SYSTEM_DEP_H__
18 #define __RIPLEY_SYSTEM_DEP_H__
20 #if defined(_WIN32) && defined(__INTEL_COMPILER)
35 #define RIPLEY_DLL_API
38 # ifndef RIPLEY_STATIC_LIB
39 # undef RIPLEY_DLL_API
40 # ifdef RIPLEY_EXPORTS
41 # define RIPLEY_DLL_API __declspec(dllexport)
43 # define RIPLEY_DLL_API __declspec(dllimport)
51 #include <boost/detail/endian.hpp>
74 unsigned long* v =
reinterpret_cast<unsigned long*
>(val);
75 *v = _byteswap_ulong(*v);
83 # include <byteswap.h>
84 #elif HAVE_SYS_ENDIAN_H
85 # include <sys/endian.h>
87 # define bswap_32(D) bswap32((D))
89 #elif HAVE_OSBYTEORDER_H
90 # include <libkern/OSByteOrder.h>
91 # define bswap_32 OSSwapInt32
92 #else // uh oh, we can't swap bytes...
93 # define bswap_32(D) D
94 #endif // header selection
99 unsigned int* v =
reinterpret_cast<unsigned int*
>(val);
108 #endif // __RIPLEY_SYSTEM_DEP_H__
Definition: ripley/src/system_dep.h:58
Definition: ripley/src/system_dep.h:64
Definition: ripley/src/system_dep.h:57
char * byte_swap32(char *val)
Definition: ripley/src/system_dep.h:97
Definition: ripley/src/system_dep.h:62
Definition: ripley/src/system_dep.h:56
Definition: ripley/src/system_dep.h:63
#define bswap_32(D)
Definition: ripley/src/system_dep.h:93