Darwin fix for ntohl()
authorJosh Coalson <jcoalson@users.sourceforce.net>
Tue, 13 Feb 2007 02:12:13 +0000 (02:12 +0000)
committerJosh Coalson <jcoalson@users.sourceforce.net>
Tue, 13 Feb 2007 02:12:13 +0000 (02:12 +0000)
src/libFLAC/bitreader.c
src/libFLAC/bitwriter.c

index 1c6cd82..b7dc6f4 100644 (file)
@@ -37,6 +37,8 @@
 #include <string.h> /* for memcpy(), memset() */
 #if defined(_MSC_VER) && _MSC_VER <= 1200
 #include <winsock.h> /* for ntohl() */
+#elif defined FLAC__SYS_DARWIN
+#include <machine/endian.h> /* for ntohl() */
 #else
 #include <netinet/in.h> /* for ntohl() */
 #endif
index 3a73d9e..4529b2f 100644 (file)
@@ -37,6 +37,8 @@
 #include <string.h> /* for memcpy(), memset() */
 #if defined(_MSC_VER) && _MSC_VER <= 1200
 #include <winsock.h> /* for ntohl() */
+#elif defined FLAC__SYS_DARWIN
+#include <machine/endian.h> /* for ntohl() */
 #else
 #include <netinet/in.h> /* for ntohl() */
 #endif