mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
git-svn-id: https://svn.macports.org/repository/macports/trunk/dports@79061 d073be05-634f-4543-b044-5fe20cf6d1d6
14 lines
494 B
Diff
14 lines
494 B
Diff
--- cuneiform_src/Kern/rstr/src/perc.c.orig 2011-05-31 18:45:31.000000000 +0200
|
|
+++ cuneiform_src/Kern/rstr/src/perc.c 2011-05-31 18:46:11.000000000 +0200
|
|
@@ -781,8 +781,8 @@
|
|
*/
|
|
#if defined(HAVE_ENDIAN_H)
|
|
|
|
-#include <endian.h>
|
|
-#define swapbytes(a) do { (a) = htobe32(a); } while (0)
|
|
+#include <machine/endian.h>
|
|
+#define swapbytes(a) do { (a) = htonl(a); } while (0)
|
|
|
|
#elif defined(WIN32) && defined(_MSC_VER) && (_MSC_VER > 800)
|
|
#define swapbytes(a) __asm { \
|