Skip to content
Myr

Merge branch 'master' of https://github.com/timsjostrand/stb into stb_h_fix

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Conflicts: stb.h

authored by Sean Barrett · committed by Sean Barrett · parents 7d4f7c5, 412e1ec · Browse files · 1 file+2 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−2 removed

  • other:+2 added−2 removed

1 file+2 added−2 removed

modified:stb.h+2 added-2 removed
204 unmodified lines
205 #define STB_THREADS206 #endif207#endif208209#ifdef _WIN32209#if defined(_WIN32) && !defined(__MINGW32__)210 #ifndef _CRT_SECURE_NO_WARNINGS211 #define _CRT_SECURE_NO_WARNINGS212 #endif213 #ifndef _CRT_NONSTDC_NO_DEPRECATE
520 unmodified lines
734 res = vsnprintf(s,n,fmt,v);735 #endif736 if (n) s[n-1] = 0;737 // Unix returns length output would require, Windows returns negative when truncated.738 return (res >= n || res < 0) ? -1 : res;738 return (res >= (int) n || res < 0) ? -1 : res;739}740741int stb_snprintf(char *s, size_t n, const char *fmt, ...)742{
13438 unmodified lines