bug-gnulib@gnu.org mirror (unofficial)
 help / color / mirror / Atom feed
* time_r module does not work on MingW
@ 2019-11-11 18:56 Christian Biesinger
  2019-11-11 19:53 ` Paul Eggert
  2019-11-11 19:59 ` Bruno Haible
  0 siblings, 2 replies; 13+ messages in thread
From: Christian Biesinger @ 2019-11-11 18:56 UTC (permalink / raw)
  To: bug-gnulib

[-- Attachment #1: Type: text/plain, Size: 486 bytes --]

Hello!

I tried to use the time_r module with GDB (using Gnulib
revision 38237baf99386101934cd93278023aa4ae523ec0)

However, I found that it does not compile, see logs at:
https://gdb-buildbot.osci.io/#/builders/23/builds/934

Apparently, the MingW time.h has localtime_r and gmtime_r defined as
__forceinline functions outside of the extern "C" block, so they use C++
linkage, whereas gnulib expects C linkage.

I'm not sure what the best fix is but this seems unfortunate?

Christian

[-- Attachment #2: Type: text/html, Size: 725 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2019-11-25 23:54 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-11 18:56 time_r module does not work on MingW Christian Biesinger
2019-11-11 19:53 ` Paul Eggert
2019-11-11 19:59 ` Bruno Haible
2019-11-11 20:47   ` Christian Biesinger
2019-11-12  2:28     ` Bruno Haible
2019-11-16 12:15       ` Bruno Haible
2019-11-16 22:41         ` wctype.h compile error on mingw with GNULIB_NAMESPACE Christian Biesinger
2019-11-17  3:05           ` Bruno Haible
2019-11-17  4:40             ` Christian Biesinger
2019-11-24 19:15               ` Bruno Haible
2019-11-25 23:28                 ` Christian Biesinger
2019-11-25 23:53                   ` Bruno Haible
2019-11-24 14:06         ` time_r module does not work on MingW Bruno Haible

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).