summaryrefslogtreecommitdiff
path: root/win32.c
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2005-01-15 15:48:05 +0000
committerdarkvater <darkvater@openttd.org>2005-01-15 15:48:05 +0000
commitef3b9161f8f106a7cf6b02766fac06d92523816a (patch)
tree174b12956255bea6bb6661e6e5a30597c730575c /win32.c
parent559317f9d0ed7d32cff54939a3296922e3fae066 (diff)
downloadopenttd-ef3b9161f8f106a7cf6b02766fac06d92523816a.tar.xz
(svn r1523) -Fix: somehow mousewheel was disabled on windows using SDL; reenabled again
-Fix: added missing CDECL to ellipsis functions and changed VS6 project file to use _cdecl calling conventions (thx tamlin)
Diffstat (limited to 'win32.c')
-rw-r--r--win32.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/win32.c b/win32.c
index f3951f94d..bb83fed72 100644
--- a/win32.c
+++ b/win32.c
@@ -2074,7 +2074,7 @@ void DeterminePaths()
CreateDirectory(_path.scenario_dir, NULL);
}
-int snprintf(char *str, size_t size, const char *format, ...)
+int CDECL snprintf(char *str, size_t size, const char *format, ...)
{
va_list ap;
int ret;
@@ -2085,7 +2085,7 @@ int snprintf(char *str, size_t size, const char *format, ...)
return ret;
}
-int vsnprintf(char *str, size_t size, const char *format, va_list ap)
+int CDECL vsnprintf(char *str, size_t size, const char *format, va_list ap)
{
int ret;
ret = _vsnprintf(str, size, format, ap);