diff compat.h @ 527:e0ea29c3d1eb

Fixed dw_window_pointer() so it works on Windows. Tried to fix the timer problems on Windows, but only managed to reduce the problem and eliminate obsolete timer code. Fixed a calling convention problem caused by incorrect placement of the definition of API in the compat.h header. Make dw_beep() not block on OS/2 and Windows.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 23 Mar 2004 11:00:04 +0000
parents 2ff26b697877
children 8217ee5c254e
line wrap: on
line diff
--- a/compat.h	Tue Mar 23 10:10:27 2004 +0000
+++ b/compat.h	Tue Mar 23 11:00:04 2004 +0000
@@ -121,6 +121,11 @@
 
 /* Windows */
 #if defined(__WIN32__) || defined(WINNT)
+
+#if defined(MSVC) && !defined(API)
+#define API _cdecl
+#endif
+
 #include <windows.h>
 #include <winsock.h>
 #include <time.h>
@@ -134,10 +139,6 @@
 #endif
 #include <stdarg.h>
 
-#if defined(MSVC) && !defined(API)
-#define API _cdecl
-#endif
-
 #if defined(__CYGWIN32__) || defined(__MINGW32__)
 #include <sys/un.h>
 #endif /* __CYGWIN32__ || __MINGW32__ */