Subversion Repositories eduke32

Compare Revisions

Ignore whitespace Rev 8647 → Rev 8648

/source/build/include/compat.h
509,7 → 509,6
 
#define Bassert assert
#define Brand rand
#define Balloca alloca
#define Bmalloc malloc
#define Bcalloc calloc
#define Brealloc realloc
616,6 → 615,22
# define Bvsnprintf vsnprintf
#endif
 
#ifdef _MSC_VER
# define Balloca _alloca
#elif defined __GNUC__
# define Balloca __builtin_alloca
#else
# define Balloca alloca
#endif
 
#ifdef _MSC_VER
# define Bmalloca _malloca
# define Bfreea _freea
#else
# define Bmalloca alloca
# define Bfreea(ptr) do { } while (0)
#endif
 
#define Btime() time(NULL)
 
#if defined(_WIN32)