]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Add config.h conditional for Windows <io.h>
authorTim Kientzle <kientzle@gmail.com>
Sun, 26 Jul 2009 07:47:34 +0000 (03:47 -0400)
committerTim Kientzle <kientzle@gmail.com>
Sun, 26 Jul 2009 07:47:34 +0000 (03:47 -0400)
SVN-Revision: 1278

build/cmake/config.h.in

index e9efbdc12f7d33ba678779676b34ea4ec7ae2c62..b260b1cb5293f8ab8ac687503d8af740a34d8cd8 100644 (file)
 /* Define to 1 if you have the <inttypes.h> header file. */
 #cmakedefine HAVE_INTTYPES_H 1
 
+/* Define to 1 if you have the <io.h> header file. */
+#cmakedefine HAVE_IO_H 1
+
 /* Define to 1 if you have the <langinfo.h> header file. */
 #cmakedefine HAVE_LANGINFO_H 1
 
 /* Define to `unsigned int' if <sys/types.h> does not define. */
 #cmakedefine uintptr_t  ${uintptr_t }
 
-
-/*
- *  Check for Watcom and Microsoft Visual C compilers (WIN32 only)
- */
-#if (defined(__WIN32__) || defined(_WIN32) || defined(__WIN32)) && !defined(__CYGWIN__)
-  #define      IS_WIN32  1
-
-  #if defined(__TURBOC__) || defined(__BORLANDC__) /* Borland compilers */
-  #elif defined( __WATCOMC__ ) || defined(__WATCOMCPP__) /* Watcom compilers */
-    #define    IS_WATCOM  1
-    /* Define to 1 if __INT64 is defined */
-  #elif defined(__IBMC__) || defined(__IBMCPP__) /* IBM compilers */
-  #elif defined( __SC__ ) /* Symantec C++ compilers */
-  #elif defined( M_I86 ) && defined( MSDOS ) /* Microsoft DOS/Win 16 compilers */
-  #elif defined( _M_IX86 ) || defined( _68K_ ) /* Microsoft Win32 compilers */
-    #define    IS_VISUALC 1
-    /* Define to 1 if __INT64 is defined */
-  #else
-  #endif
-
-  /*
-   * libarchvie has ftruncate(),futimes(),utimes() functions.
-   */
-  #ifndef HAVE_FTRUNCATE 
-    #define HAVE_FTRUNCATE 1
-  #endif
-  #ifndef HAVE_FUTIMES 
-    #define HAVE_FUTIMES 1
-  #endif
-  #ifndef HAVE_UTIMES 
-    #define HAVE_UTIMES 1
-  #endif
-
-  #include "archive_windows.h"
-#endif
-