mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Only define symbols in config-compiler.h, don't include headers.
This commit is contained in:
parent
2c9ffa506a
commit
d513a2d946
@ -1,3 +1,10 @@
|
|||||||
|
2005-07-07 Hrvoje Niksic <hniksic@xemacs.org>
|
||||||
|
|
||||||
|
* mswindows.h: Define an alias for stat and fstat, as requested by
|
||||||
|
config-compiler.h.
|
||||||
|
(gai_strerror): Define to windows_strerror if NEED_GAI_STRERROR is
|
||||||
|
defined.
|
||||||
|
|
||||||
2005-07-06 Hrvoje Niksic <hniksic@xemacs.org>
|
2005-07-06 Hrvoje Niksic <hniksic@xemacs.org>
|
||||||
|
|
||||||
* mswindows.h: Use strtoll where available.
|
* mswindows.h: Use strtoll where available.
|
||||||
|
@ -98,6 +98,14 @@ __int64 str_to_int64 (const char *, char **, int);
|
|||||||
is equivalent to stat anyway. */
|
is equivalent to stat anyway. */
|
||||||
#define lstat stat
|
#define lstat stat
|
||||||
|
|
||||||
|
/* Define LFS aliases for stat and fstat. */
|
||||||
|
#ifdef stat_alias
|
||||||
|
# define stat(f, b) stat_alias (f, b)
|
||||||
|
#endif
|
||||||
|
#ifdef fstat_alias
|
||||||
|
# define fstat(f, b) fstat_alias (f, b)
|
||||||
|
#endif
|
||||||
|
|
||||||
#define PATH_SEPARATOR '\\'
|
#define PATH_SEPARATOR '\\'
|
||||||
|
|
||||||
/* Win32 doesn't support the MODE argument to mkdir. */
|
/* Win32 doesn't support the MODE argument to mkdir. */
|
||||||
@ -109,6 +117,11 @@ __int64 str_to_int64 (const char *, char **, int);
|
|||||||
const char *inet_ntop (int, const void *, char *, socklen_t);
|
const char *inet_ntop (int, const void *, char *, socklen_t);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef NEED_GAI_STRERROR
|
||||||
|
# undef gai_strerror
|
||||||
|
# define gai_strerror windows_strerror
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef INHIBIT_WRAP
|
#ifndef INHIBIT_WRAP
|
||||||
|
|
||||||
/* Winsock functions don't set errno, so we provide wrappers that do. */
|
/* Winsock functions don't set errno, so we provide wrappers that do. */
|
||||||
|
@ -1,3 +1,10 @@
|
|||||||
|
2005-07-07 Hrvoje Niksic <hniksic@xemacs.org>
|
||||||
|
|
||||||
|
* config-compiler.h (stat_alias): Don't directly redefine stat and
|
||||||
|
fstat here. Just define the alias symbols.
|
||||||
|
(gai_strerror): Just declare that it needs to be defined instead
|
||||||
|
of defining it directly.
|
||||||
|
|
||||||
2005-07-07 Gisle Vanem <giva@bgnett.no>
|
2005-07-07 Gisle Vanem <giva@bgnett.no>
|
||||||
|
|
||||||
* config-compiler.h: Define HAVE__BOOL, HAVE_INTTYPES_H, and
|
* config-compiler.h: Define HAVE__BOOL, HAVE_INTTYPES_H, and
|
||||||
|
@ -45,10 +45,6 @@ so, delete this exception statement from your version. */
|
|||||||
contains most of the explanatory comments. Things that apply to
|
contains most of the explanatory comments. Things that apply to
|
||||||
*all* compilers, as well as things that are specific to Wget,
|
*all* compilers, as well as things that are specific to Wget,
|
||||||
belong in src/mswindows.h. */
|
belong in src/mswindows.h. */
|
||||||
|
|
||||||
/* For all compilers: must include <sys/stat.h> *before* redefining
|
|
||||||
stat. */
|
|
||||||
#include <sys/stat.h>
|
|
||||||
|
|
||||||
/* -------------------- */
|
/* -------------------- */
|
||||||
/* MinGW (GCC) section. */
|
/* MinGW (GCC) section. */
|
||||||
@ -60,10 +56,11 @@ so, delete this exception statement from your version. */
|
|||||||
#define LL(n) n##LL
|
#define LL(n) n##LL
|
||||||
|
|
||||||
/* Transparently support statting large files, like POSIX's LFS API
|
/* Transparently support statting large files, like POSIX's LFS API
|
||||||
does. All Windows compilers we support use _stati64 (but have
|
does, by aliasing stat and fstat to their equivalents that do LFS.
|
||||||
different names for 2nd argument type, see below), so we use
|
Most Windows compilers we support use _stati64 (but have different
|
||||||
that. */
|
names for 2nd argument type, see below), so we use that. */
|
||||||
#define stat(fname, buf) _stati64 (fname, buf)
|
#define stat_alias _stati64
|
||||||
|
#define fstat_alias _fstati64
|
||||||
|
|
||||||
/* On Windows the 64-bit stat requires an explicitly different type
|
/* On Windows the 64-bit stat requires an explicitly different type
|
||||||
for the 2nd argument, so we define a struct_stat macro that expands
|
for the 2nd argument, so we define a struct_stat macro that expands
|
||||||
@ -81,13 +78,16 @@ so, delete this exception statement from your version. */
|
|||||||
/* MinGW 3.7 (or older) prototypes gai_strerror(), but is missing
|
/* MinGW 3.7 (or older) prototypes gai_strerror(), but is missing
|
||||||
from all import libraries. */
|
from all import libraries. */
|
||||||
#ifdef ENABLE_IPV6
|
#ifdef ENABLE_IPV6
|
||||||
# undef gai_strerror
|
# define NEED_GAI_STRERROR
|
||||||
# define gai_strerror windows_strerror
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* MinGW and GCC support some POSIX and C99 features. */
|
/* MinGW and GCC support some POSIX and C99 features. */
|
||||||
#define HAVE__BOOL 1
|
|
||||||
#define HAVE_INTTYPES_H 1
|
#define HAVE_INTTYPES_H 1
|
||||||
|
|
||||||
|
#define HAVE__BOOL 1
|
||||||
|
#undef SIZEOF_LONG_LONG /* avoid redefinition warning */
|
||||||
|
#define SIZEOF_LONG_LONG 8
|
||||||
|
|
||||||
#define HAVE_STRTOLL 1
|
#define HAVE_STRTOLL 1
|
||||||
|
|
||||||
/* -------------------- */
|
/* -------------------- */
|
||||||
@ -99,7 +99,8 @@ so, delete this exception statement from your version. */
|
|||||||
|
|
||||||
#define LL(n) n##I64
|
#define LL(n) n##I64
|
||||||
|
|
||||||
#define stat(fname, buf) _stati64 (fname, buf)
|
#define stat_alias _stati64
|
||||||
|
#define fstat_alias _fstati64
|
||||||
#define struct_stat struct _stati64
|
#define struct_stat struct _stati64
|
||||||
#define struct_fstat struct _stati64
|
#define struct_fstat struct _stati64
|
||||||
|
|
||||||
@ -117,9 +118,11 @@ so, delete this exception statement from your version. */
|
|||||||
#define OS_TYPE "Windows-Borland"
|
#define OS_TYPE "Windows-Borland"
|
||||||
|
|
||||||
#define LL(n) n##I64
|
#define LL(n) n##I64
|
||||||
#define stat(fname, buf) _stati64 (fname, buf)
|
|
||||||
|
#define stat_alias _stati64
|
||||||
|
#undef fstat_alias
|
||||||
#define struct_stat struct stati64
|
#define struct_stat struct stati64
|
||||||
#define struct_fstat struct stat
|
#undef struct_fstat
|
||||||
|
|
||||||
/* ------------------------------ */
|
/* ------------------------------ */
|
||||||
/* Digital Mars Compiler section. */
|
/* Digital Mars Compiler section. */
|
||||||
@ -132,7 +135,8 @@ so, delete this exception statement from your version. */
|
|||||||
|
|
||||||
/* DMC supports 64-bit types, including long long, but not statting
|
/* DMC supports 64-bit types, including long long, but not statting
|
||||||
large files. */
|
large files. */
|
||||||
#undef stat
|
#undef stat_alias
|
||||||
|
#undef fstat_alias
|
||||||
/* If left undefined, sysdep.h will define these to struct stat. */
|
/* If left undefined, sysdep.h will define these to struct stat. */
|
||||||
#undef struct_stat
|
#undef struct_stat
|
||||||
#undef struct_fstat
|
#undef struct_fstat
|
||||||
|
Loading…
Reference in New Issue
Block a user