Update cute_spritebatch.h

Fixes compilation on FreeBSD (yes, apparently CSE2 supports FreeBSD
without even trying).
This commit is contained in:
Clownacy 2020-04-10 01:20:12 +01:00
parent ba069de70e
commit b2679edf37

View file

@ -123,7 +123,6 @@
SPRITEBATCH_ASSERT
SPRITEBATCH_ATLAS_FLIP_Y_AXIS_FOR_UV
SPRITEBATCH_ATLAS_EMPTY_COLOR
SPRITEBATCH_ALLOCA
SPRITEBATCH_LOG
Revision history:
@ -134,6 +133,7 @@
inverted get pixels callback to let users have an easier time
with memory management, added support for pixel padding along
the edges of all textures (useful for certain shader effects)
1.02 (04/09/2020) Compilation fix for FreeBSD - Remove unused alloca header and define
*/
#ifndef SPRITEBATCH_H
@ -465,15 +465,6 @@ struct spritebatch_t
#define SPRITEBATCH_ATLAS_EMPTY_COLOR 0x000000FF
#endif
#ifndef SPRITEBATCH_ALLOCA
#ifdef _WIN32
#include <malloc.h>
#else
#include <alloca.h>
#endif
#define SPRITEBATCH_ALLOCA(ctx, size) alloca(size)
#endif
#ifndef SPRITEBATCH_LOG
#if 0
#define SPRITEBATCH_LOG printf