diff options
author | Daniel Schürmann <daschuer@mixxx.org> | 2021-01-10 16:13:45 +0100 |
---|---|---|
committer | Daniel Schürmann <daschuer@mixxx.org> | 2021-01-10 20:58:16 +0100 |
commit | ad5a511e87dde3341825d6631253641fca4514c7 (patch) | |
tree | 138169dfda00d7b3c61b3f20fe65a1e8104eaebe /lib | |
parent | b628f61e04902037e3d268c4d3c0b9c10de86f24 (diff) |
fix os.h
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/libshout-idjc/include/os.h | 11 | ||||
-rw-r--r-- | lib/libshout-idjc/src/common/httpp/encoding.h | 4 | ||||
-rw-r--r-- | lib/libshout-idjc/src/common/httpp/httpp.c | 4 | ||||
-rw-r--r-- | lib/libshout-idjc/src/common/net/sock.h | 2 |
4 files changed, 20 insertions, 1 deletions
diff --git a/lib/libshout-idjc/include/os.h b/lib/libshout-idjc/include/os.h index 8442af44a4..7d4cfc884e 100755 --- a/lib/libshout-idjc/include/os.h +++ b/lib/libshout-idjc/include/os.h @@ -1,7 +1,18 @@ #ifdef _MSC_VER +#define strncasecmp _strnicmp +#define strcasecmp _stricmp +#define strdup _strdup + typedef __int64 int64_t; typedef unsigned __int64 uint64_t; typedef unsigned __int32 uint32_t; +typedef unsigned __int16 uint16_t; +typedef unsigned __int8 uint8_t; typedef __int32 int32_t; typedef int ssize_t; +typedef int socklen_t; +#ifndef _WIN64 +// NOTE(rryan): For some reason, x64 already had size_t defined but x86 doesn't. +typedef unsigned int size_t; +#endif #endif diff --git a/lib/libshout-idjc/src/common/httpp/encoding.h b/lib/libshout-idjc/src/common/httpp/encoding.h index 64c654d975..7788336597 100644 --- a/lib/libshout-idjc/src/common/httpp/encoding.h +++ b/lib/libshout-idjc/src/common/httpp/encoding.h @@ -27,6 +27,10 @@ #include <sys/types.h> +#if _WIN32 +#include <os.h> +#endif + /* known encodings */ #define HTTPP_ENCODING_IDENTITY "identity" /* RFC2616 */ #define HTTPP_ENCODING_CHUNKED "chunked" /* RFC2616 */ diff --git a/lib/libshout-idjc/src/common/httpp/httpp.c b/lib/libshout-idjc/src/common/httpp/httpp.c index 5e23a3ae0a..baeb216026 100644 --- a/lib/libshout-idjc/src/common/httpp/httpp.c +++ b/lib/libshout-idjc/src/common/httpp/httpp.c @@ -41,6 +41,10 @@ #include <avl/avl.h> #include "httpp.h" +#if _WIN32 +#include <os.h> +#endif + #define MAX_HEADERS 32 /* internal functions */ diff --git a/lib/libshout-idjc/src/common/net/sock.h b/lib/libshout-idjc/src/common/net/sock.h index e0e3d4fcf8..7cfbafb12b 100644 --- a/lib/libshout-idjc/src/common/net/sock.h +++ b/lib/libshout-idjc/src/common/net/sock.h @@ -36,7 +36,7 @@ #ifdef HAVE_UNISTD_H #include <unistd.h> #elif _WIN32 -#include <compat.h> +#include <os.h> #endif #ifdef HAVE_SYS_UIO_H |