From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from krisdoz.my.domain (schwarze@localhost [127.0.0.1]) by krisdoz.my.domain (8.14.5/8.14.5) with ESMTP id r930kacm003653 for ; Wed, 2 Oct 2013 20:46:36 -0400 (EDT) Received: (from schwarze@localhost) by krisdoz.my.domain (8.14.5/8.14.3/Submit) id r930kaI9024783; Wed, 2 Oct 2013 20:46:36 -0400 (EDT) Date: Wed, 2 Oct 2013 20:46:36 -0400 (EDT) Message-Id: <201310030046.r930kaI9024783@krisdoz.my.domain> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: schwarze@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: Byte-order functions for Mac OS X. X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- Byte-order functions for Mac OS X. Same patch sent in by Franco Fichtner and Kristaps Dzonsons. Tested by Franco Fichtner . Tags: ---- VERSION_1_12 Modified Files: -------------- mdocml: config.h.post Revision Data ------------- Index: config.h.post =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/config.h.post,v retrieving revision 1.6.2.1 retrieving revision 1.6.2.2 diff -Lconfig.h.post -Lconfig.h.post -u -p -r1.6.2.1 -r1.6.2.2 --- config.h.post +++ config.h.post @@ -16,8 +16,14 @@ #endif #ifndef HAVE_BETOH64 -#define betoh64(x) be64toh(x) +# if defined(__APPLE__) +# define betoh64(x) OSSwapBigToHostInt64(x) +# define htobe64(x) OSSwapHostToBigInt64(x) +# else +# define betoh64(x) be64toh(x) +# endif #endif + #ifndef HAVE_STRLCAT extern size_t strlcat(char *, const char *, size_t); #endif -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv