Subversion Repositories eduke32

Compare Revisions

Ignore whitespace Rev 4761 → Rev 4762

/polymer/eduke32/Makefile.common
268,7 → 268,7
OPTIMIZATIONS += $(DEBUGFLAG)
endif
 
CONLYFLAGS=-std=gnu99 -Wimplicit
CONLYFLAGS=-std=gnu99 -Wimplicit -Werror-implicit-function-declaration
CPPONLYFLAGS= -fno-exceptions -fno-rtti -Wno-write-strings
ASFORMAT=elf$(SYSBITS)
ASFLAGS=-s -f $(ASFORMAT) #-g
510,7 → 510,7
endif
endif
 
CWARNS := -W -Wall -Werror-implicit-function-declaration \
CWARNS := -W -Wall \
-Wpointer-arith \
-Wextra \
-Wno-char-subscripts \
/polymer/eduke32/build/include/compat.h
5,31 → 5,14
#ifndef compat_h_
#define compat_h_
 
#include <malloc.h>
 
#ifdef _WIN32
# define WIN32_LEAN_AND_MEAN
# include <windows.h>
#endif
 
#ifdef __APPLE__
# include <TargetConditionals.h>
# if !TARGET_OS_IPHONE
# if MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_3
# include <CoreFoundation/CoreFoundation.h>
# endif
# include <CoreServices/CoreServices.h>
# endif
#endif
 
#ifdef __GNUC__
# define EDUKE32_GCC_PREREQ(major, minor) (major > __GNUC__ || (major == __GNUC__ && minor >= __GNUC_MINOR__))
# define EDUKE32_GCC_PREREQ(major, minor) (major < __GNUC__ || (major == __GNUC__ && minor <= __GNUC_MINOR__))
#else
# define EDUKE32_GCC_PREREQ(major, minor) 0
#endif
 
#ifdef __clang__
# define EDUKE32_CLANG_PREREQ(major, minor) (major > __clang_major__ || (major == __clang_major__ && minor >= __clang_minor__))
# define EDUKE32_CLANG_PREREQ(major, minor) (major < __clang_major__ || (major == __clang_major__ && minor <= __clang_minor__))
#else
# define EDUKE32_CLANG_PREREQ(major, minor) 0
#endif
84,6 → 67,25
#define max(x,y) ((x) > (y) ? (x) : (y))
#endif
 
#ifndef __APPLE__
# include <malloc.h>
#endif
 
#ifdef _WIN32
# define WIN32_LEAN_AND_MEAN
# include <windows.h>
#endif
 
#ifdef __APPLE__
# include <TargetConditionals.h>
# if !TARGET_OS_IPHONE
# if MAC_OS_X_VERSION_MAX_ALLOWED <= MAC_OS_X_VERSION_10_3
# include <CoreFoundation/CoreFoundation.h>
# endif
# include <CoreServices/CoreServices.h>
# endif
#endif
 
// This gives us access to 'intptr_t' and 'uintptr_t', which are
// abstractions to the size of a pointer on a given platform
// (ie, they're guaranteed to be the same size as a pointer)
90,7 → 92,9
 
#undef __USE_MINGW_ANSI_STDIO // Workaround for MinGW-w64.
 
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#ifndef __STDC_LIMIT_MACROS
# define __STDC_LIMIT_MACROS
#endif
615,7 → 619,6
# define Bchdir chdir
# define Bgetcwd getcwd
# endif
# define Bmemalign memalign
# define Bopen open
# define Bclose close
# define Bwrite write
846,6 → 849,9
{
#ifdef _WIN32
void *ptr = _aligned_malloc(size, alignment);
#elif defined __APPLE__
void *ptr = NULL;
posix_memalign(&ptr, alignment, size);
#else
void *ptr = memalign(alignment, size);
#endif
/polymer/eduke32/source/animvpx.c
2,7 → 2,9
 
#ifdef USE_LIBVPX
 
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#ifndef __STDC_LIMIT_MACROS
#define __STDC_LIMIT_MACROS
#endif
/polymer/eduke32/source/gamevars.h
111,7 → 111,8
 
static inline void A_ResetVars(const int32_t iActor)
{
for (int i = 0; i < g_gameVarCount; i++)
int i;
for (i = 0; i < g_gameVarCount; i++)
{
if ((aGameVars[i].dwFlags & (GAMEVAR_PERACTOR | GAMEVAR_NODEFAULT)) == GAMEVAR_PERACTOR)
aGameVars[i].val.plValues[iActor] = aGameVars[i].lDefault;
/polymer/eduke32/source/sounds.c
20,7 → 20,9
*/
//-------------------------------------------------------------------------
 
#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS
#endif
#ifndef __STDC_LIMIT_MACROS
#define __STDC_LIMIT_MACROS
#endif