* mdocml: Byte-order functions for Mac OS X.
@ 2013-10-03 0:46 schwarze
0 siblings, 0 replies; only message in thread
From: schwarze @ 2013-10-03 0:46 UTC (permalink / raw)
To: source
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-10-03 0:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-03 0:46 mdocml: Byte-order functions for Mac OS X schwarze
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).