From 554e0727429cc65e187b740a484d83c7216ccce0 Mon Sep 17 00:00:00 2001 From: Sean Barrett Date: Mon, 5 Dec 2016 06:53:36 -0800 Subject: [PATCH] fix #ifdef mistake in stb_sprintf --- README.md | 4 ++-- stb_sprintf.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index bb2b31c..e1e8f5f 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ library | lastest version | category | LoC | description **[stb_image_write.h](stb_image_write.h)** | 1.02 | graphics | 1048 | image writing to disk: PNG, TGA, BMP **[stb_image_resize.h](stb_image_resize.h)** | 0.91 | graphics | 2578 | resize images larger/smaller with good quality **[stb_rect_pack.h](stb_rect_pack.h)** | 0.10 | graphics | 583 | simple 2D rectangle packer with decent quality -**[stb_sprintf.h](stb_sprintf.h)** | 1.00 | utility | 1066 | fast sprintf, snprintf for C/C++ +**[stb_sprintf.h](stb_sprintf.h)** | 1.01 | utility | 1064 | fast sprintf, snprintf for C/C++ **[stretchy_buffer.h](stretchy_buffer.h)** | 1.02 | utility | 216 | typesafe dynamic array for C (i.e. approximation to vector<>), doesn't compile as C++ **[stb_textedit.h](stb_textedit.h)** | 1.10 | user interface | 1330 | guts of a text editor for games etc implementing them from scratch **[stb_voxel_render.h](stb_voxel_render.h)** | 0.84 | 3D graphics | 3752 | Minecraft-esque voxel rendering "engine" with many more features @@ -33,7 +33,7 @@ library | lastest version | category | LoC | description **[stb_leakcheck.h](stb_leakcheck.h)** | 0.2 | misc | 124 | quick-and-dirty malloc/free leak-checking Total libraries: 20 -Total lines of C code: 49381 +Total lines of C code: 49379 FAQ diff --git a/stb_sprintf.h b/stb_sprintf.h index 23de7e4..fc32543 100644 --- a/stb_sprintf.h +++ b/stb_sprintf.h @@ -1,4 +1,4 @@ -// stb_sprintf - v1.00 - public domain snprintf() implementation +// stb_sprintf - v1.01 - public domain snprintf() implementation // originally by Jeff Roberts / RAD Game Tools, 2015/10/20 // http://github.com/nothings/stb // @@ -152,7 +152,7 @@ STBSP__PUBLICDEF void STB_SPRINTF_DECORATE( set_separators )( char comma, char p #endif // STB_SPRINTF_H_INCLUDE -#ifndef STB_SPRINTF_IMPLEMENTATION +#ifdef STB_SPRINTF_IMPLEMENTATION #include // for va_arg()