stb_image: fix new warnings
Before adoption: this commit came in with the history the project adopted, so no landing records it.
authored by Sean Barrett · committed by Sean Barrett · parent 0cbdb25 · Browse files · 2 files·+8 added−10 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+8 added−10 removed
- other:+8 added−10 removed
Provenance
- Commit
0224a44- Tree
cf1ba30- Author
Sean Barrett <sean@nothings.org>- Committer
Sean Barrett <sean@nothings.org>- Parent
0cbdb25
2 files changed+8 added−10 removed
modified:README.md+2 added-2 removed
19 unmodified lines2021222324242526272814 unmodified lines43444546474748495051117 unmodified linesExpand all19 unmodified lines
library | lastest version | category | LoC | description--------------------- | ---- | -------- | --- | --------------------------------**[stb_vorbis.c](stb_vorbis.c)** | 1.18 | audio | 5554 | decode ogg vorbis files from file/memory to float/16-bit signed output**[stb_image.h](stb_image.h)** | 2.23 | graphics | 7658 | image loading/decoding from file/memory: JPG, PNG, TGA, BMP, PSD, GIF, HDR, PIC**[stb_image.h](stb_image.h)** | 2.25 | graphics | 7656 | image loading/decoding from file/memory: JPG, PNG, TGA, BMP, PSD, GIF, HDR, PIC**[stb_truetype.h](stb_truetype.h)** | 1.23 | graphics | 5001 | parse, decode, and rasterize characters from truetype fonts**[stb_image_write.h](stb_image_write.h)** | 1.14 | graphics | 1666 | image writing to disk: PNG, TGA, BMP**[stb_image_resize.h](stb_image_resize.h)** | 0.96 | graphics | 2631 | resize images larger/smaller with good quality**[stb_rect_pack.h](stb_rect_pack.h)** | 1.00 | graphics | 628 | simple 2D rectangle packer with decent quality14 unmodified lines**[stb_leakcheck.h](stb_leakcheck.h)** | 0.6 | misc | 194 | quick-and-dirty malloc/free leak-checking**[stb_include.h](stb_include.h)** | 0.02 | misc | 295 | implement recursive #include support, particularly for GLSL
Total libraries: 22 Total lines of C code: 56551Total lines of C code: 56549
FAQ---117 unmodified linesExpand allmodified:stb_image.h+6 added-8 removed
1-/* stb_image - v2.23 - public domain image loader - http://nothings.org/stb1+/* stb_image - v2.25 - public domain image loader - http://nothings.org/stb2 no warranty implied; use at your own risk3 4 Do this:5 #define STB_IMAGE_IMPLEMENTATION41 unmodified lines47 See end of file for license information.48 49 RECENT REVISION HISTORY:50 51+ 2.25 (2020-02-02) fix warnings52 2.24 (2020-02-02) fix warnings; thread-local failure_reason and flip_vertically53 2.23 (2019-08-11) fix clang static analysis warning54 2.22 (2019-03-04) gif fixes, fix warnings55 2.21 (2019-02-25) fix typo in comment36 unmodified lines92 John-Mark Allen93 Carmelo J Fdez-Aguera94 95 Bug & warning fixes95- Marc LeBlanc David Woo Guillaume George Martins Mozeiko Alexander Veselov96+ Marc LeBlanc David Woo Guillaume George Martins Mozeiko97 Christpher Lloyd Jerry Jansson Joseph Thomson Phil Jordan98 Dave Moore Roy Eltham Hayaki Saito Nathan Reed99 Won Chun Luke Graham Johan Duparc Nick Verigakis100 the Horde3D community Thomas Ruf Ronny Chevalier github:rlyeh6 unmodified lines107 Oriol Ferrer Mesia Josh Tobin Matthew Gregan github:phprus108 Julian Raschke Gregory Mullen Baldur Karlsson github:poppolopoppo109 Christian Floisand Kevin Schmidt JR Smith github:darealshinji110 Brad Weinberger Matvey Cherevko github:Michaelangel007110- Blazej Dariusz Roszkowski111-111+ Blazej Dariusz Roszkowski Alexander Veselov112 */113 114 #ifndef STBI_INCLUDE_STB_IMAGE_H115 #define STBI_INCLUDE_STB_IMAGE_H356 unmodified lines472 473 // as above, but only applies to images loaded on the thread that calls the function474 // this function is only available if your compiler supports thread-local variables;475 // calling it will fail to link if your compiler doesn't476-#if __cplusplus >= 201103L || __STDC_VERSION_ >= 201112L || defined(__GNUC__) || defined(_MSC_VER)476 STBIDEF void stbi_set_flip_vertically_on_load_thread(int flag_true_if_should_flip);478-#endif477 478 // ZLIB client - used by PNG, available for other purposes479 480 STBIDEF char *stbi_zlib_decode_malloc_guesssize(const char *buffer, int len, int initial_size, int *outlen);90 unmodified lines571 #define stbi_inline __forceinline572 #endif573 574 #ifndef STBI_NO_THREAD_LOCALS577- #if __cplusplus >= 201103L575+ #if defined(__cplusplus) && __cplusplus >= 201103L576 #define STBI_THREAD_LOCAL thread_local579- #elif __STDC_VERSION_ >= 201112L577+ #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 201112L578 #define STBI_THREAD_LOCAL _Thread_local579 #elif defined(__GNUC__)580 #define STBI_THREAD_LOCAL __thread581 #elif defined(_MSC_VER)7075 unmodified lines