]> sjero.net Git - wget/blobdiff - windows/config.h.bor
[svn] Updated dependencies of connect$o to include utils.h
[wget] / windows / config.h.bor
index be6db5a5a2f04def9f3a3023c4f852b930c85d7c..69ac6c73c169e89578ad34dec73747bd348921d0 100644 (file)
 #ifndef CONFIG_H
 #define CONFIG_H
 
+/* Borland C does not define __STDC__ when the Borland extensions are
+   enabled, but you need those extensions to compile <windows.h>.  */
+#if !defined(__STDC__) && defined(__BORLANDC__)
+# define __STDC__ 1
+#endif
+
 #define HAVE_MEMMOVE
 #define ftruncate chsize
 #define inline __inline
 
-/* Define if you have the <alloca.h> header file.  */
-#undef HAVE_ALLOCA_H
+/* Define if the free Borland C++Builder 5.5 command-line compiler is used,
+   because its utime() has a bug. */
+#define HACK_BCC_UTIME_BUG
 
-/* AIX requires this to be the first thing in the file.  */
-#ifdef __GNUC__
-# define alloca __builtin_alloca
-#else
-# if HAVE_ALLOCA_H
-#  include <alloca.h>
-# else
-#  ifdef _AIX
- #pragma alloca
-#  else
-#   ifndef alloca /* predefined by HP cc +Olibcalls */
-#    include <malloc.h>
-#   endif
-#  endif
-# endif
+#ifdef HACK_BCC_UTIME_BUG
+#define utime borland_utime
 #endif
 
-/* Define if on AIX 3.
-   System headers sometimes define this.
-   We just want to avoid a redefinition error message.  */
-#ifndef _ALL_SOURCE
-/* #undef _ALL_SOURCE */
-#endif
+/* Define if you have the <alloca.h> header file.  */
+#undef HAVE_ALLOCA_H
+
+/* For Borland C++ 5.5, alloca is defined in the <malloc.h> header file. */
+#include <malloc.h>
 
 /* Define to empty if the keyword does not work.  */
 /* #undef const */