Merge branch 'master' of https://github.com/rwhitworth/stb into working
Conflicts: stb.h
This commit is contained in:
commit
b0852b766a
13
stb.h
13
stb.h
@ -184,7 +184,7 @@ Fixes:
|
|||||||
r-lyeh
|
r-lyeh
|
||||||
blackpawn
|
blackpawn
|
||||||
Mojofreem@github
|
Mojofreem@github
|
||||||
|
Ryan Whitworth
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef STB__INCLUDE_STB_H
|
#ifndef STB__INCLUDE_STB_H
|
||||||
@ -205,6 +205,15 @@ Fixes:
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
#define _CRT_SECURE_NO_WARNINGS
|
||||||
|
#define _CRT_NONSTDC_NO_DEPRECATE
|
||||||
|
#define _CRT_NON_CONFORMING_SWPRINTFS
|
||||||
|
#if !defined(_MSC_VER) || _MSC_VER > 1700
|
||||||
|
#include <intrin.h> // _BitScanReverse
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <stdlib.h> // stdlib could have min/max
|
#include <stdlib.h> // stdlib could have min/max
|
||||||
#include <stdio.h> // need FILE
|
#include <stdio.h> // need FILE
|
||||||
#include <string.h> // stb_define_hash needs memcpy/memset
|
#include <string.h> // stb_define_hash needs memcpy/memset
|
||||||
@ -1429,7 +1438,7 @@ int stb_is_pow2(unsigned int n)
|
|||||||
int stb_log2_floor(unsigned int n)
|
int stb_log2_floor(unsigned int n)
|
||||||
{
|
{
|
||||||
#if _MSC_VER > 1700
|
#if _MSC_VER > 1700
|
||||||
unsigned int i;
|
unsigned long i;
|
||||||
_BitScanReverse(&i, n);
|
_BitScanReverse(&i, n);
|
||||||
return i != 0 ? i : -1;
|
return i != 0 ? i : -1;
|
||||||
#else
|
#else
|
||||||
|
@ -94,6 +94,7 @@ void print_string(float x, float y, char *text, float r, float g, float b)
|
|||||||
#define INCLUDE_STB_EASY_FONT_H
|
#define INCLUDE_STB_EASY_FONT_H
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <math.h>
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
unsigned char advance;
|
unsigned char advance;
|
||||||
|
@ -15,6 +15,8 @@
|
|||||||
#undef realloc
|
#undef realloc
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <assert.h>
|
||||||
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
@ -326,6 +326,12 @@
|
|||||||
#ifndef STB_TILEMAP_INCLUDE_STB_TILEMAP_EDITOR_H
|
#ifndef STB_TILEMAP_INCLUDE_STB_TILEMAP_EDITOR_H
|
||||||
#define STB_TILEMAP_INCLUDE_STB_TILEMAP_EDITOR_H
|
#define STB_TILEMAP_INCLUDE_STB_TILEMAP_EDITOR_H
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
#define _CRT_SECURE_NO_WARNINGS
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef struct stbte_tilemap stbte_tilemap;
|
typedef struct stbte_tilemap stbte_tilemap;
|
||||||
|
|
||||||
// these are the drawmodes used in STBTE_DRAW_TILE
|
// these are the drawmodes used in STBTE_DRAW_TILE
|
||||||
|
5463
stb_vorbis.h
Normal file
5463
stb_vorbis.h
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user