]> sjero.net Git - wget/blobdiff - src/mswindows.h
[svn] Fixes to support out of the box compilation on various Windows compilers.
[wget] / src / mswindows.h
index 52a42e593abd2b5b1ab11b13f5e8eb1a5dcc23ea..4f505d8002f5ea3700e6b2ea7e9ef416755f4e40 100644 (file)
@@ -65,6 +65,10 @@ so, delete this exception statement from your version.  */
 #endif
 #endif
 
+/* Use ANSI-style stdargs regardless of whether the compiler bothers
+   to define __STDC__.  (Many don't when extensions are enabled.)  */
+#define WGET_USE_STDARG
+
 #define REALCLOSE(x) closesocket (x)
 
 /* read & write don't work with sockets on Windows 95.  */
@@ -121,9 +125,20 @@ so, delete this exception statement from your version.  */
 #define ESTALE                  WSAESTALE
 #define EREMOTE                 WSAEREMOTE
 
+#ifdef __DMC__
+# define HAVE_SLEEP 1
+# define HAVE_USLEEP 1
+#endif
+
 /* Public functions.  */
 
+#ifndef HAVE_SLEEP
 unsigned int sleep (unsigned);
+#endif
+#ifndef HAVE_USLEEP
+int usleep (unsigned long);
+#endif
+
 void ws_startup (void);
 void ws_changetitle (char*, int);
 char *ws_mypath (void);