win32: fix compiling in release builds

This commit is contained in:
zeromus 2009-04-25 22:50:35 +00:00
parent d988ba6192
commit f1ea9cca7a
2 changed files with 7 additions and 1 deletions

View File

@ -1366,7 +1366,7 @@ void gfx3d_glFlush(u32 v)
gfx3d.wbuffer = BIT1(v);
}
static int gfx3d_ysort_compare(const void * elem1, const void * elem2)
static int _CDECL_ gfx3d_ysort_compare(const void * elem1, const void * elem2)
{
int num1 = *(int*)elem1;
int num2 = *(int*)elem2;

View File

@ -114,6 +114,12 @@
#endif
#endif
#ifdef _MSC_VER
#define _CDECL_ __cdecl
#else
#define _CDECL_
#endif
#ifndef INLINE
#if defined(_MSC_VER) || defined(__INTEL_COMPILER)
#define INLINE _inline