From 7c41e298a212753ce663aa2ed5e7c6af339ab9d3 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 28 Jun 2017 05:34:17 +0200 Subject: [PATCH] Update libretro-common --- libretro-common/compat/compat_posix_string.c | 2 -- libretro-common/compat/compat_snprintf.c | 2 ++ libretro-common/compat/compat_strcasestr.c | 1 - libretro-common/compat/compat_strl.c | 2 -- 4 files changed, 2 insertions(+), 5 deletions(-) diff --git a/libretro-common/compat/compat_posix_string.c b/libretro-common/compat/compat_posix_string.c index 71b9f8e832..4bddf11f8f 100644 --- a/libretro-common/compat/compat_posix_string.c +++ b/libretro-common/compat/compat_posix_string.c @@ -24,8 +24,6 @@ #include -#include - #ifdef _WIN32 #undef strcasecmp diff --git a/libretro-common/compat/compat_snprintf.c b/libretro-common/compat/compat_snprintf.c index 17b453e3c0..8baa56a618 100644 --- a/libretro-common/compat/compat_snprintf.c +++ b/libretro-common/compat/compat_snprintf.c @@ -21,6 +21,7 @@ */ /* THIS FILE HAS NOT BEEN VALIDATED ON PLATFORMS BESIDES MSVC */ +#ifdef _MSC_VER #include @@ -56,3 +57,4 @@ int c99_snprintf_retro__(char *outBuf, size_t size, const char *format, ...) return count; } +#endif diff --git a/libretro-common/compat/compat_strcasestr.c b/libretro-common/compat/compat_strcasestr.c index 163c50fedb..82ce5acb7b 100644 --- a/libretro-common/compat/compat_strcasestr.c +++ b/libretro-common/compat/compat_strcasestr.c @@ -23,7 +23,6 @@ #include #include -#include /* Pretty much strncasecmp. */ static int casencmp(const char *a, const char *b, size_t n) diff --git a/libretro-common/compat/compat_strl.c b/libretro-common/compat/compat_strl.c index 188fd72477..668b3d9236 100644 --- a/libretro-common/compat/compat_strl.c +++ b/libretro-common/compat/compat_strl.c @@ -25,8 +25,6 @@ #include #include -#include - /* Implementation of strlcpy()/strlcat() based on OpenBSD. */ #ifndef __MACH__