From: schwarze@mdocml.bsd.lv
To: source@mdocml.bsd.lv
Subject: mdocml: Byte-order functions for Mac OS X.
Date: Wed, 2 Oct 2013 20:46:36 -0400 (EDT) [thread overview]
Message-ID: <201310030046.r930kaI9024783@krisdoz.my.domain> (raw)
Log Message:
-----------
Byte-order functions for Mac OS X.
Same patch sent in by Franco Fichtner and Kristaps Dzonsons.
Tested by Franco Fichtner <franco at lastsummer dot de>.
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
reply other threads:[~2013-10-03 0:46 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201310030046.r930kaI9024783@krisdoz.my.domain \
--to=schwarze@mdocml.bsd.lv \
--cc=source@mdocml.bsd.lv \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).