Sfoglia il codice sorgente

Use the built-in version of vsnprintf() to support printing NULLs

Elad Lahav 2 anni fa
parent
commit
f352eeb90c
1 ha cambiato i file con 6 aggiunte e 0 eliminazioni
  1. 6 0
      CMakeLists.txt

+ 6 - 0
CMakeLists.txt

@@ -1817,6 +1817,12 @@ elseif(UNIX AND NOT APPLE AND NOT RISCOS AND NOT HAIKU)
     set(HAVE_RPATH TRUE)
     set(HAVE_RPATH TRUE)
   endif()
   endif()
 
 
+  if(QNX)
+    # QNX's *printf() family generates a SIGSEGV if NULL is passed for a string
+    # specifier (on purpose), but SDL expects "(null)". Use the built-in
+    # implementation.
+    set (HAVE_VSNPRINTF 0)
+  endif()
 elseif(WINDOWS)
 elseif(WINDOWS)
   find_program(WINDRES windres)
   find_program(WINDRES windres)