]> sjero.net Git - wget/blobdiff - windows/config-compiler.h
[svn] Define SIZEOF_LONG_LONG under DMC.
[wget] / windows / config-compiler.h
index 69e43562cb8d6e4bc07604fafb776a2e1b3b6001..5ce1c9b81a9a58ffbd68b9043fa8d7d1e1ae258d 100644 (file)
@@ -40,12 +40,19 @@ 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. */
 /* -------------------- */
 #if defined __GNUC__
 
+#define OS_TYPE "Windows-MinGW"
+
 #define LL(n) n##LL
 
 /* Transparently support statting large files, like POSIX's LFS API
@@ -71,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
 /* -------------------- */
@@ -80,6 +86,8 @@ so, delete this exception statement from your version.  */
 /* -------------------- */
 #elif defined _MSC_VER
 
+#define OS_TYPE "Windows-MSVC"
+
 #define LL(n) n##I64
 
 #define stat(fname, buf) _stati64 (fname, buf)
@@ -93,6 +101,8 @@ so, delete this exception statement from your version.  */
 /* ------------------ */
 #elif defined __BORLANDC__
 
+#define OS_TYPE "Windows-Borland"
+
 #define LL(n) n##I64
 #define stat(fname, buf) _stati64 (fname, buf)
 #define struct_stat struct stati64
@@ -103,6 +113,8 @@ so, delete this exception statement from your version.  */
 /* ------------------------------ */
 #elif defined __DMC__
 
+#define OS_TYPE "Windows-DMC"
+
 #define LL(n) n##LL
 #undef stat
 #undef struct_stat
@@ -112,6 +124,8 @@ 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
 \f
 #else
 # error Your compiler is not supported.