Skip to content

Commit

Permalink
localtime_r need _POSIX_C_SOURCE on mingw
Browse files Browse the repository at this point in the history
  • Loading branch information
sreimers committed Feb 7, 2024
1 parent dcb5bfc commit d4fc47c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/fmt/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
* Copyright (C) 2010 Creytiv.com
*/

#ifdef _MINGW32__
#define _POSIX_C_SOURCE
#endif

#include <time.h>

#ifdef WIN32
Expand Down

0 comments on commit d4fc47c

Please sign in to comment.