diff options
author | Josh Coalson <jcoalson@users.sourceforce.net> | 2007-02-13 02:12:13 +0000 |
---|---|---|
committer | Josh Coalson <jcoalson@users.sourceforce.net> | 2007-02-13 02:12:13 +0000 |
commit | f67f2065b3dae9bb3de04f1618d6eac372ea05ef (patch) | |
tree | f3b6a791273cff8dd81be157f207512ebfdc99ae /src/libFLAC/bitwriter.c | |
parent | e88147e3c6b1f2a6301551c3a876e7c291d0a8d5 (diff) | |
download | flac-f67f2065b3dae9bb3de04f1618d6eac372ea05ef.tar.gz |
Darwin fix for ntohl()
Diffstat (limited to 'src/libFLAC/bitwriter.c')
-rw-r--r-- | src/libFLAC/bitwriter.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libFLAC/bitwriter.c b/src/libFLAC/bitwriter.c index 3a73d9e5..4529b2f0 100644 --- a/src/libFLAC/bitwriter.c +++ b/src/libFLAC/bitwriter.c @@ -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 |