Skip to content
Myr

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

2 files+8 added−10 removed

modified:README.md+2 added-2 removed
modified: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 risk34 Do this:5 #define STB_IMAGE_IMPLEMENTATION
41 unmodified lines
47 See end of file for license information.4849RECENT REVISION HISTORY:5051 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 comment
36 unmodified lines
92 John-Mark Allen93 Carmelo J Fdez-Aguera9495 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:rlyeh
6 unmodified lines
107 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 Roszkowski111111 Blazej Dariusz Roszkowski Alexander Veselov112*/113114#ifndef STBI_INCLUDE_STB_IMAGE_H115#define STBI_INCLUDE_STB_IMAGE_H
356 unmodified lines
472473// 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)476STBIDEF void stbi_set_flip_vertically_on_load_thread(int flag_true_if_should_flip);478#endif477478// ZLIB client - used by PNG, available for other purposes479480STBIDEF char *stbi_zlib_decode_malloc_guesssize(const char *buffer, int len, int initial_size, int *outlen);
90 unmodified lines
571 #define stbi_inline __forceinline572#endif573574#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