mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 03:40:34 +02:00
Fix MinGW build warning caused by tzname redeclaration
The warning is: stime.c:85: warning: `tzname' redeclared without dllimport attribute: previous dllimport ignored The second half of this section of #ifdefery implies that the MinGW build isn't going to reference a function called `tzname' anyway (because it's going to use `_tzname' instead). So why should a MinGW build want any declaration of `tzname' at all? As far as a declaration of `_tzname' is concerned, there are no more #includes after this, so we must have already got a declaration of `_tzname' from one of the preceding includes. * libguile/stime.c (tzname): Remove declaration in __MINGW32__ build. It isn't needed and causes a build warning.
This commit is contained in:
parent
a5cb530502
commit
0367cb9d56
1 changed files with 3 additions and 2 deletions
|
@ -80,11 +80,12 @@
|
|||
#include <crt_externs.h> /* for Darwin _NSGetEnviron */
|
||||
#endif
|
||||
|
||||
#if defined (__MINGW32__)
|
||||
# define tzname _tzname
|
||||
#else
|
||||
#ifndef tzname /* For SGI. */
|
||||
extern char *tzname[]; /* RS6000 and others reject char **tzname. */
|
||||
#endif
|
||||
#if defined (__MINGW32__)
|
||||
# define tzname _tzname
|
||||
#endif
|
||||
|
||||
#if ! HAVE_DECL_STRPTIME
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue