mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 22:51:57 +00:00
MinGW64 fixes, unbreaking FTEQCC too
git-svn-id: https://svn.code.sf.net/p/fteqw/code/branches/wip@3703 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
cc4f8982da
commit
47c3a6873b
2 changed files with 6 additions and 2 deletions
|
@ -11,7 +11,8 @@ extern jmp_buf qcccompileerror;
|
|||
#endif
|
||||
|
||||
// I put the following here to resolve "undefined reference to `__imp__vsnprintf'" with MinGW64 ~ Moodles
|
||||
#ifdef _WIN32
|
||||
#ifdef __MINGW64__
|
||||
#ifndef QCCONLY
|
||||
#if (_MSC_VER >= 1400)
|
||||
//with MSVC 8, use MS extensions
|
||||
#define snprintf linuxlike_snprintf_vc8
|
||||
|
@ -25,6 +26,7 @@ extern jmp_buf qcccompileerror;
|
|||
int VARGS linuxlike_vsnprintf(char *buffer, int size, const char *format, va_list argptr);
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// set these before calling CheckParm
|
||||
int myargc;
|
||||
|
|
|
@ -7,7 +7,8 @@
|
|||
#include "time.h"
|
||||
|
||||
// I put the following here to resolve "undefined reference to `__imp__vsnprintf'" with MinGW64 ~ Moodles
|
||||
#ifdef _WIN32
|
||||
#ifdef __MINGW64__
|
||||
#ifndef QCCONLY
|
||||
#if (_MSC_VER >= 1400)
|
||||
//with MSVC 8, use MS extensions
|
||||
#define snprintf linuxlike_snprintf_vc8
|
||||
|
@ -21,6 +22,7 @@
|
|||
int VARGS linuxlike_vsnprintf(char *buffer, int size, const char *format, va_list argptr);
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#define MEMBERFIELDNAME "__m%s"
|
||||
|
||||
|
|
Loading…
Reference in a new issue