]> sjero.net Git - wget/blobdiff - windows/config-compiler.h
[svn] Use strtoll on Windows if available (as with DMC).
[wget] / windows / config-compiler.h
index 806f9a437b27e19f660106a279f0551243484b35..08bfa499ecfc619b358d22ad69f0b4b94b30f5f7 100644 (file)
@@ -40,6 +40,11 @@ so, delete this exception statement from your version.  */
 
    Things that apply to *all* compilers, as well as things that are
    specific to Wget, belong in src/mswindows.h.  */
+
+/* For all compilers: must include <sys/stat.h> before redefining
+   stat.  */
+
+#include <sys/stat.h>
 \f
 /* -------------------- */
 /* MinGW (GCC) section. */
@@ -73,8 +78,7 @@ so, delete this exception statement from your version.  */
    from all import libraries. */
 #ifdef ENABLE_IPV6
 # undef gai_strerror
-#  define gai_strerror windows_strerror
-# endif
+# define gai_strerror windows_strerror
 #endif
 \f
 /* -------------------- */
@@ -91,6 +95,10 @@ so, delete this exception statement from your version.  */
 #define struct_fstat struct _stati64
 
 #define isatty _isatty
+
+#if _MSC_VER >= 1300
+# define HAVE__STRTOI64
+#endif
 \f
 /* ------------------ */
 /* Borland C section. */
@@ -120,6 +128,9 @@ so, delete this exception statement from your version.  */
 #define HAVE_USLEEP 1
 #define HAVE_STDBOOL_H 1
 #define HAVE__BOOL 1
+#undef SIZEOF_LONG_LONG
+#define SIZEOF_LONG_LONG 8
+#define HAVE_STRTOLL
 \f
 #else
 # error Your compiler is not supported.