From 36dfbe5d66a487e92f5792ea0018fac02ec474e5 Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Thu, 28 Jul 2022 02:06:29 +0200 Subject: [PATCH] stdlib: exclude mslibc functions using SDL_STATIC_LIB macro --- src/stdlib/SDL_mslibc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/stdlib/SDL_mslibc.c b/src/stdlib/SDL_mslibc.c index fe623cc71d..37aa00937a 100644 --- a/src/stdlib/SDL_mslibc.c +++ b/src/stdlib/SDL_mslibc.c @@ -27,7 +27,8 @@ /* This file contains SDL replacements for functions in the C library */ -#ifndef HAVE_LIBC +#if !defined(HAVE_LIBC) && !defined(SDL_STATIC_LIB) + /* These are some C runtime intrinsics that need to be defined */ #if defined(_MSC_VER) @@ -712,6 +713,6 @@ RETZERO: #endif /* MSC_VER */ -#endif /* !HAVE_LIBC */ +#endif /* !HAVE_LIBC && !SDL_STATIC_LIB */ /* vi: set ts=4 sw=4 expandtab: */