bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 'daylight' redeclared as different kind of symbol with mingw-w64


From: Markus Mützel
Subject: Re: 'daylight' redeclared as different kind of symbol with mingw-w64
Date: Thu, 14 Nov 2024 17:22:26 +0000

The following might be relevant:

configure:79124: checking spelling of daylight variable
configure:79153: gcc -o conftest.exe -g -ggdb -O0 -pthread -fopenmp 
-fexceptions   conftest.c -lpthread -lm  >&5
conftest.c: In function 'main':
conftest.c:341:8: error: returning 'int * (*)(void)' from a function with 
return type 'int' makes integer from pointer without a cast [-Wint-conversion]
  341 | return __daylight;
      |        ^~~~~~~~~~
configure:79153: $? = 1
configure: failed program was:
 <snip>
| #include <time.h>
|
| #ifdef F77_DUMMY_MAIN
|
| #  ifdef __cplusplus
|      extern "C"
| #  endif
|    int F77_DUMMY_MAIN() { return 1; }
|
| #endif
| int
| main (void)
| {
| return __daylight;
|   ;
|   return 0;
| }
|


That is with GCC 14.2.0 if that matters.

Markus
</time.h></snip>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]