Re: can't compile `stdlib.h` on mxe

2021-05-22 Thread Werner LEMBERG
>> It doesn't – it is an auto-generated Qt file. However, the file >> starts >> with >> ``` >> #include >> #include "ddlineedit.h" > > You could instead compile a file ddlineedit.config-moc.cpp, with the > following contents: > > #include > #include "ddlineedit.moc.cpp" Yeah, this came to my

Re: can't compile `stdlib.h` on mxe

2021-05-22 Thread Paul Eggert
On 5/22/21 7:32 AM, Bruno Haible wrote: It doesn't – it is an auto-generated Qt file. However, the file starts with ``` #include #include "ddlineedit.h" You could instead compile a file ddlineedit.config-moc.cpp, with the following contents: #include #include "ddlineedit.moc.cpp"

Re: can't compile `stdlib.h` on mxe

2021-05-22 Thread Werner LEMBERG
>> Note that this is a new error; it didn't happen in July 2019 (the >> last time I've tried to build ttfautohint with mxe and Qt5). > > Yes. We have added 'restrict' in many places, to match the function > declarations in POSIX. OK. > That's not enough. needs to be included before . > > The

Re: can't compile `stdlib.h` on mxe

2021-05-22 Thread Bruno Haible
Hello Werner, > Note that this is a new error; it didn't happen in July 2019 (the > last time I've tried to build ttfautohint with mxe and Qt5). Yes. We have added 'restrict' in many places, to match the function declarations in POSIX. > > * Can you verify that ddlineedit.moc.cpp starts with a '

Re: can't compile `stdlib.h` on mxe

2021-05-22 Thread Bruno Haible
Hi Werner, > While compiling my `ttfautohint` package with a slightly tailored mxe > build, I get the following compilation error: > > CXX ttfautohintGUI-ddlineedit.moc.o > In file included from > /home/wl/git/mxe/usr/lib/gcc/i686-w64-mingw32.static/5.5.0/include/c++/cwchar:44:0, >

can't compile `stdlib.h` on mxe

2021-05-22 Thread Werner LEMBERG
[9c4b4b083f87] While compiling my `ttfautohint` package with a slightly tailored mxe build, I get the following compilation error: CXX ttfautohintGUI-ddlineedit.moc.o In file included from /home/wl/git/mxe/usr/lib/gcc/i686-w64-mingw32.static/5.5.0/include/c++/cwchar:44:0,