Skip to content

Commit

Permalink
stb_image.h: remove stdlib.h dependency from the latest upgrade.
Browse files Browse the repository at this point in the history
  • Loading branch information
sezero authored and slouken committed May 28, 2022
1 parent 04562ed commit 0581d06
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions stb_image.h
Original file line number Diff line number Diff line change
Expand Up @@ -380,9 +380,14 @@ enum
STBI_rgb_alpha = 4
};

#if 0 /* SDL_image change */
#include <stdlib.h>
typedef unsigned char stbi_uc;
typedef unsigned short stbi_us;
#else
typedef Uint8 stbi_uc;
typedef Uint16 stbi_us;
#endif

#ifdef __cplusplus
extern "C" {
Expand Down

0 comments on commit 0581d06

Please sign in to comment.