Hopefully a solution for Win64 + SDL... or hack

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3954 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Lance 2012-01-04 16:08:33 +00:00
parent 2b7b9720f3
commit 5c52aa9975
1 changed files with 11 additions and 0 deletions

View File

@ -6,6 +6,17 @@
#endif
#include "time.h"
// Win64 + SDL = undfined reference to vsnprintf
#ifdef _WIN64
#ifdef SDL_MAJOR_VERSION
//msvc crap
#define snprintf linuxlike_snprintf
int VARGS linuxlike_snprintf(char *buffer, int size, const char *format, ...) LIKEPRINTF(3);
#define vsnprintf linuxlike_vsnprintf
int VARGS linuxlike_vsnprintf(char *buffer, int size, const char *format, va_list argptr);
#endif
#endif
#define MEMBERFIELDNAME "__m%s"
#define STRCMP(s1,s2) (((*s1)!=(*s2)) || strcmp(s1+1,s2+1)) //saves about 2-6 out of 120 - expansion of idea from fastqcc