<pre style='margin:0'>
Joshua Root (jmroot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/51f9f9f920669dd5a7ee5a99fbcd3209b149ce12">https://github.com/macports/macports-ports/commit/51f9f9f920669dd5a7ee5a99fbcd3209b149ce12</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new 51f9f9f9206 sdl12-compat: handle HAVE_* macros defined to 0
</span>51f9f9f9206 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 51f9f9f920669dd5a7ee5a99fbcd3209b149ce12
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Mon Aug 29 03:57:07 2022 +1000
<span style='display:block; white-space:pre;color:#404040;'> sdl12-compat: handle HAVE_* macros defined to 0
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> See: https://trac.macports.org/ticket/65732
</span>---
devel/sdl12-compat/Portfile | 4 +-
devel/sdl12-compat/files/SDL_stdinc.h.patch | 353 ++++++++++++++++++++++++++++
2 files changed, 356 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/sdl12-compat/Portfile b/devel/sdl12-compat/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 62b54b683bc..02c53830205 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/sdl12-compat/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/sdl12-compat/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -5,6 +5,7 @@ PortGroup cmake 1.0
</span> PortGroup github 1.0
github.setup libsdl-org sdl12-compat 1.2.52 release-
<span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span> categories devel multimedia
platforms macosx freebsd
license zlib
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -24,7 +25,8 @@ checksums rmd160 93b7a1a35ef9ad2a26859a0b88167d1c3cef2bff \
</span> depends_lib port:libsdl2
patchfiles CMakeLists.txt.patch \
<span style='display:block; white-space:pre;background:#ffe0e0;'>- SDL2path.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ SDL2path.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ SDL_stdinc.h.patch
</span> post-patch {
reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/src/SDL12_compat.c
}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/sdl12-compat/files/SDL_stdinc.h.patch b/devel/sdl12-compat/files/SDL_stdinc.h.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..c4029d1d93a
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/sdl12-compat/files/SDL_stdinc.h.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,353 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Check values of HAVE_* macros, not just definedness. Some build systems
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+define these to 0 when the feature is unavailable.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- include/SDL/SDL_stdinc.h.orig 2022-03-04 01:56:56.000000000 +1100
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ include/SDL/SDL_stdinc.h 2022-08-29 03:52:54.000000000 +1000
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -77,43 +77,43 @@ typedef enum SDL_DUMMY_ENUM
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ SDL_COMPILE_TIME_ASSERT(enum, sizeof(SDL_DUMMY_ENUM) == sizeof(int));
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef HAVE_SYS_TYPES_H
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if HAVE_SYS_TYPES_H
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <sys/types.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef HAVE_STDIO_H
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if HAVE_STDIO_H
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <stdio.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef HAVE_STDLIB_H
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if HAVE_STDLIB_H
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <stdlib.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef HAVE_MALLOC_H
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if HAVE_MALLOC_H
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <malloc.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef HAVE_STDDEF_H
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if HAVE_STDDEF_H
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <stddef.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef HAVE_STDARG_H
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if HAVE_STDARG_H
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <stdarg.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef HAVE_STRING_H
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if HAVE_STRING_H
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <string.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef HAVE_STRINGS_H
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if HAVE_STRINGS_H
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <strings.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef HAVE_INTTYPES_H
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if HAVE_INTTYPES_H
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <inttypes.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef HAVE_STDINT_H
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if HAVE_STDINT_H
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <stdint.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef HAVE_CTYPE_H
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if HAVE_CTYPE_H
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <ctype.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef HAVE_ICONV_H
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if HAVE_ICONV_H
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <iconv.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef HAVE_ALLOCA_H
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if HAVE_ALLOCA_H
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <alloca.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -123,7 +123,7 @@ SDL_COMPILE_TIME_ASSERT(enum, sizeof(SDL
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ not, so we try to #define them to be the C runtime equivalents as possible,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ so things built with these headers will still run against the real SDL 1.2. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef HAVE_ICONV
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if HAVE_ICONV
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define SDL_iconv_t iconv_t
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define SDL_iconv_open iconv_open
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define SDL_iconv_close iconv_close
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -135,231 +135,231 @@ extern DECLSPEC int SDLCALL SDL_iconv_cl
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern DECLSPEC size_t SDLCALL SDL_iconv(SDL_iconv_t cd, const char **inbuf, size_t *inbytesleft, char **outbuf, size_t *outbytesleft);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern DECLSPEC char * SDLCALL SDL_iconv_string(const char *tocode, const char *fromcode, const char *inbuf, size_t inbytesleft);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef HAVE_MALLOC
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if HAVE_MALLOC
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define SDL_malloc malloc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern DECLSPEC void * SDLCALL SDL_malloc(size_t size);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef HAVE_CALLOC
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if HAVE_CALLOC
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define SDL_calloc calloc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern DECLSPEC void * SDLCALL SDL_calloc(size_t nmemb, size_t size);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef HAVE_REALLOC
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if HAVE_REALLOC
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define SDL_realloc realloc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern DECLSPEC void * SDLCALL SDL_realloc(void *mem, size_t size);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef HAVE_FREE
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if HAVE_FREE
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define SDL_free free
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern DECLSPEC void SDLCALL SDL_free(void *mem);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef HAVE_GETENV
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if HAVE_GETENV
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define SDL_getenv getenv
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern DECLSPEC char * SDLCALL SDL_getenv(const char *name);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef HAVE_PUTENV
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if HAVE_PUTENV
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define SDL_putenv putenv
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern DECLSPEC int SDLCALL SDL_putenv(const char *variable);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef HAVE_QSORT
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if HAVE_QSORT
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define SDL_qsort qsort
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern DECLSPEC void SDLCALL SDL_qsort(void *base, size_t nmemb, size_t size, int (*compare)(const void *, const void *));
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef HAVE_MEMSET
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if HAVE_MEMSET
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define SDL_memset memset
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern DECLSPEC void * SDLCALL SDL_memset(void *dst, int c, size_t len);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef HAVE_MEMCPY
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if HAVE_MEMCPY
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define SDL_memcpy memcpy
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern DECLSPEC void * SDLCALL SDL_memcpy(void *dst, const void *src, size_t len);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef HAVE_REVCPY
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if HAVE_REVCPY
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define SDL_revcpy revcpy
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern DECLSPEC void * SDLCALL SDL_revcpy(void *dst, const void *src, size_t len);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef HAVE_MEMCMP
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if HAVE_MEMCMP
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define SDL_memcmp memcmp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern DECLSPEC int SDLCALL SDL_memcmp(const void *s1, const void *s2, size_t len);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef HAVE_STRLEN
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if HAVE_STRLEN
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define SDL_strlen strlen
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern DECLSPEC size_t SDLCALL SDL_strlen(const char *string);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef HAVE_STRLCPY
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if HAVE_STRLCPY
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define SDL_strlcpy strlcpy
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern DECLSPEC size_t SDLCALL SDL_strlcpy(char *dst, const char *src, size_t maxlen);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef HAVE_STRLCAT
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if HAVE_STRLCAT
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define SDL_strlcat strlcat
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern DECLSPEC size_t SDLCALL SDL_strlcat(char *dst, const char *src, size_t maxlen);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef HAVE_STRDUP
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if HAVE_STRDUP
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define SDL_strdup strdup
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern DECLSPEC char * SDLCALL SDL_strdup(const char *string);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef HAVE__STRREV
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if HAVE__STRREV
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define SDL_strrev _strrev
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern DECLSPEC char * SDLCALL SDL_strrev(char *string);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef HAVE__STRUPR
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if HAVE__STRUPR
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define SDL_strupr _strupr
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern DECLSPEC char * SDLCALL SDL_strupr(char *string);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef HAVE__STRLWR
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if HAVE__STRLWR
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define SDL_strlwr _strlwr
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern DECLSPEC char * SDLCALL SDL_strlwr(char *string);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef HAVE_STRCHR
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if HAVE_STRCHR
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define SDL_strchr strchr
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern DECLSPEC char * SDLCALL SDL_strchr(const char *string, int c);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef HAVE_STRRCHR
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if HAVE_STRRCHR
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define SDL_strrchr strrchr
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern DECLSPEC char * SDLCALL SDL_strrchr(const char *string, int c);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef HAVE_STRSTR
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if HAVE_STRSTR
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define SDL_strstr strstr
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern DECLSPEC char * SDLCALL SDL_strstr(const char *haystack, const char *needle);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef HAVE__LTOA
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if HAVE__LTOA
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define SDL_ltoa _ltoa
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern DECLSPEC char * SDLCALL SDL_ltoa(long value, char *string, int radix);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef HAVE__ULTOA
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if HAVE__ULTOA
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define SDL_ultoa _ultoa
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern DECLSPEC char * SDLCALL SDL_ultoa(unsigned long value, char *string, int radix);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef HAVE_STRTOL
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if HAVE_STRTOL
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define SDL_strtol strtol
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern DECLSPEC long SDLCALL SDL_strtol(const char *string, char **endp, int base);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef HAVE_STRTOUL
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if HAVE_STRTOUL
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define SDL_strtoul strtoul
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern DECLSPEC unsigned long SDLCALL SDL_strtoul(const char *string, char **endp, int base);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef HAVE__I64TOA
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if HAVE__I64TOA
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define SDL_lltoa _i64toa
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern DECLSPEC char* SDLCALL SDL_lltoa(Sint64 value, char *string, int radix);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef HAVE__UI64TOA
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if HAVE__UI64TOA
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define SDL_ulltoa _ui64toa
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern DECLSPEC char* SDLCALL SDL_ulltoa(Uint64 value, char *string, int radix);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef HAVE__STRTOI64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if HAVE__STRTOI64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define SDL_strtoll _strtoi64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#elif defined(HAVE_STRTOLL)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#elif HAVE_STRTOLL
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define SDL_strtoll strtoll
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern DECLSPEC Sint64 SDLCALL SDL_strtoll(const char *string, char **endp, int base);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef HAVE__STRTOUI64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if HAVE__STRTOUI64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define SDL_strtoull _strtoui64
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#elif defined(HAVE_STRTOULL)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#elif HAVE_STRTOULL
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define SDL_strtoull strtoull
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern DECLSPEC Uint64 SDLCALL SDL_strtoull(const char *string, char **endp, int base);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef HAVE_STRTOD
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if HAVE_STRTOD
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define SDL_strtod strtod
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern DECLSPEC double SDLCALL SDL_strtod(const char *string, char **endp);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef HAVE_STRCMP
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if HAVE_STRCMP
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define SDL_strcmp strcmp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern DECLSPEC int SDLCALL SDL_strcmp(const char *str1, const char *str2);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef HAVE_STRNCMP
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if HAVE_STRNCMP
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define SDL_strncmp strncmp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern DECLSPEC int SDLCALL SDL_strncmp(const char *str1, const char *str2, size_t maxlen);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef HAVE_STRCASECMP
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if HAVE_STRCASECMP
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define SDL_strcasecmp strcasecmp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#elif defined(HAVE__STRICMP)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#elif HAVE__STRICMP
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define SDL_strcasecmp _stricmp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern DECLSPEC int SDLCALL SDL_strcasecmp(const char *str1, const char *str2);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef HAVE_STRNCASECMP
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if HAVE_STRNCASECMP
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define SDL_strncasecmp strncasecmp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#elif defined(HAVE__STRNICMP)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#elif HAVE__STRNICMP
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define SDL_strcasecmp _strnicmp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern DECLSPEC int SDLCALL SDL_strncasecmp(const char *str1, const char *str2, size_t maxlen);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef HAVE_SSCANF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if HAVE_SSCANF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define SDL_sscanf sscanf
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern DECLSPEC int SDLCALL SDL_sscanf(const char *text, const char *fmt, ...);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef HAVE_SNPRINT
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if HAVE_SNPRINT
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define SDL_snprintf snprintf
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern DECLSPEC int SDLCALL SDL_snprintf(char *text, size_t maxlen, const char *fmt, ...);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef HAVE_VSNPRINTF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if HAVE_VSNPRINTF
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define SDL_vsnprintf vsnprintf
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ extern DECLSPEC int SDLCALL SDL_vsnprintf(char *text, size_t maxlen, const char *fmt, va_list ap);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -382,7 +382,7 @@ extern DECLSPEC int SDLCALL SDL_vsnprint
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } while (0)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#ifdef HAVE_ALLOCA
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#if HAVE_ALLOCA
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define SDL_stack_alloc(type, count) (type*)alloca(sizeof(type)*(count))
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define SDL_stack_free(data)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span></pre><pre style='margin:0'>
</pre>