Mercurial > dwindows
comparison 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 |
comparison
equal
deleted
inserted
replaced
526:d3ce0afa6cf5 | 527:e0ea29c3d1eb |
---|---|
119 #endif | 119 #endif |
120 #endif | 120 #endif |
121 | 121 |
122 /* Windows */ | 122 /* Windows */ |
123 #if defined(__WIN32__) || defined(WINNT) | 123 #if defined(__WIN32__) || defined(WINNT) |
124 | |
125 #if defined(MSVC) && !defined(API) | |
126 #define API _cdecl | |
127 #endif | |
128 | |
124 #include <windows.h> | 129 #include <windows.h> |
125 #include <winsock.h> | 130 #include <winsock.h> |
126 #include <time.h> | 131 #include <time.h> |
127 #include <process.h> | 132 #include <process.h> |
128 #include <sys/stat.h> | 133 #include <sys/stat.h> |
131 #else | 136 #else |
132 #include <dir.h> | 137 #include <dir.h> |
133 #include <dirent.h> | 138 #include <dirent.h> |
134 #endif | 139 #endif |
135 #include <stdarg.h> | 140 #include <stdarg.h> |
136 | |
137 #if defined(MSVC) && !defined(API) | |
138 #define API _cdecl | |
139 #endif | |
140 | 141 |
141 #if defined(__CYGWIN32__) || defined(__MINGW32__) | 142 #if defined(__CYGWIN32__) || defined(__MINGW32__) |
142 #include <sys/un.h> | 143 #include <sys/un.h> |
143 #endif /* __CYGWIN32__ || __MINGW32__ */ | 144 #endif /* __CYGWIN32__ || __MINGW32__ */ |
144 | 145 |