Pārlūkot izejas kodu

stdlib: exclude mslibc functions using SDL_STATIC_LIB macro

Anonymous Maarten 2 gadi atpakaļ
vecāks
revīzija
36dfbe5d66
1 mainītis faili ar 3 papildinājumiem un 2 dzēšanām
  1. 3 2
      src/stdlib/SDL_mslibc.c

+ 3 - 2
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: */