Sfoglia il codice sorgente

Merge pull request #431 from McNopper/master_norbert_warning_fix

Removed compiler GCC warning.
Micha Mettke 8 anni fa
parent
commit
1f8f92e73f
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      nuklear.h

+ 2 - 0
nuklear.h

@@ -5084,6 +5084,7 @@ nk_dtoa(char *s, double n)
 }
 
 #ifdef NK_INCLUDE_STANDARD_VARARGS
+#ifndef NK_INCLUDE_STANDARD_IO
 static int
 nk_vsnprintf(char *buf, int buf_size, const char *fmt, va_list args)
 {
@@ -5402,6 +5403,7 @@ nk_vsnprintf(char *buf, int buf_size, const char *fmt, va_list args)
     result = (len >= buf_size)?-1:len;
     return result;
 }
+#endif
 
 NK_INTERN int
 nk_strfmt(char *buf, int buf_size, const char *fmt, va_list args)