~sircmpwn/public-inbox

1

compilation error with MinGW

Details
Message ID
<CAMq1adqKCUZr3fi8hn1Zuz68CBEGrKVpFTpotGLx=Hrvewh1qA@mail.gmail.com>
DKIM signature
pass
Download raw message
Hello

scdoc does not compile with MinGW:

```
cc -std=c99 -pedantic -c -o .build/main.o -g -DVERSION='"1.11.2"'
-Wall -Wextra -Werror -Wno-unused-parameter -Iinclude src/main.c
src/main.c: In function 'parse_preamble':
src/main.c:113:40: error: unknown conversion type character 'F' in
format [-Werror=format=]
  113 |         strftime(date, sizeof(date), "%F", date_tm);
      |                                        ^

```

See patch here:

https://github.com/msys2/MINGW-packages/blob/master/mingw-w64-scdoc/parsedate.patch

or you can always use %Y-%m-%d to avoid a #ifdef

regards

Vincent Torri
Details
Message ID
<CNZXZ5K82US0.2UM5SR9M71IQB@taiga>
In-Reply-To
<CAMq1adqKCUZr3fi8hn1Zuz68CBEGrKVpFTpotGLx=Hrvewh1qA@mail.gmail.com> (view parent)
DKIM signature
pass
Download raw message
I don't care about MinGW support at all.
Reply to thread Export thread (mbox)