From 7f77907ab1f44a0d8b7c0fa14f2c9df69f42500b Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Thu, 2 Jul 2009 14:07:55 +0000 Subject: Inevitably, Windows requires winsock.h instead of the BSD stack headers. svn path=/trunk/libparserutils/; revision=8263 --- src/charset/codecs/codec_8859.c | 4 ++++ src/charset/codecs/codec_ascii.c | 4 ++++ src/charset/codecs/codec_ext8.c | 4 ++++ src/charset/codecs/codec_utf16.c | 4 ++++ src/charset/codecs/codec_utf8.c | 4 ++++ 5 files changed, 20 insertions(+) diff --git a/src/charset/codecs/codec_8859.c b/src/charset/codecs/codec_8859.c index 6d53b86..fec034d 100644 --- a/src/charset/codecs/codec_8859.c +++ b/src/charset/codecs/codec_8859.c @@ -9,10 +9,14 @@ #include #include +#ifdef BUILD_TARGET_windows +#include +#else /* These three are for htonl / ntohl */ #include #include #include +#endif #include diff --git a/src/charset/codecs/codec_ascii.c b/src/charset/codecs/codec_ascii.c index 318e7f0..46bfe5f 100644 --- a/src/charset/codecs/codec_ascii.c +++ b/src/charset/codecs/codec_ascii.c @@ -9,10 +9,14 @@ #include #include +#ifdef BUILD_TARGET_windows +#include +#else /* These three are for htonl / ntohl */ #include #include #include +#endif #include diff --git a/src/charset/codecs/codec_ext8.c b/src/charset/codecs/codec_ext8.c index 54ee854..cbde1c4 100644 --- a/src/charset/codecs/codec_ext8.c +++ b/src/charset/codecs/codec_ext8.c @@ -9,10 +9,14 @@ #include #include +#ifdef BUILD_TARGET_windows +#include +#else /* These three are for htonl / ntohl */ #include #include #include +#endif #include diff --git a/src/charset/codecs/codec_utf16.c b/src/charset/codecs/codec_utf16.c index 0b8379a..6ec7878 100644 --- a/src/charset/codecs/codec_utf16.c +++ b/src/charset/codecs/codec_utf16.c @@ -8,10 +8,14 @@ #include #include +#ifdef BUILD_TARGET_windows +#include +#else /* These three are for htonl / ntohl */ #include #include #include +#endif #include #include diff --git a/src/charset/codecs/codec_utf8.c b/src/charset/codecs/codec_utf8.c index ea192a6..7ef7fb8 100644 --- a/src/charset/codecs/codec_utf8.c +++ b/src/charset/codecs/codec_utf8.c @@ -8,10 +8,14 @@ #include #include +#ifdef BUILD_TARGET_windows +#include +#else /* These three are for htonl / ntohl */ #include #include #include +#endif #include -- cgit v1.2.3