From: Tim Kientzle Date: Sun, 26 Jul 2009 07:47:34 +0000 (-0400) Subject: Add config.h conditional for Windows X-Git-Tag: v2.8.0~505 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8cf8c91050c67d52586a830561002d5322bd5aaf;p=thirdparty%2Flibarchive.git Add config.h conditional for Windows SVN-Revision: 1278 --- diff --git a/build/cmake/config.h.in b/build/cmake/config.h.in index e9efbdc12..b260b1cb5 100644 --- a/build/cmake/config.h.in +++ b/build/cmake/config.h.in @@ -184,6 +184,9 @@ /* Define to 1 if you have the header file. */ #cmakedefine HAVE_INTTYPES_H 1 +/* Define to 1 if you have the header file. */ +#cmakedefine HAVE_IO_H 1 + /* Define to 1 if you have the header file. */ #cmakedefine HAVE_LANGINFO_H 1 @@ -668,39 +671,3 @@ /* Define to `unsigned int' if 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 -