Re: [PATCH] Adapts to -std=c11 on OS/2
KO Myung-Hun <[email protected]> Sat, 28 Sep 2024 20:47:32 +0900
| Newsgroups | gmane.comp.video.mplayer.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi/2. Dave Yeo wrote: > On 09/27/24 08:36 AM, KO Myung-Hun wrote: >> -std=c11 disables many extensions of OS/2 kLIBC. And this causes many >> compilation errors such as implicit functions. >> >> To enable extensions of OS/2 kLIBC, define _EMX_SOURCE before including >> any headers. > > I did the same before deciding that adding -D_EMX_SOURCE to > --extra-cflags was less invasive. If an user does not add -D_EMX_SOURCE to --extra-cflags, compilation will fail. I think this is not a correct way. It would be better to succeed to compile regardless of user's configuration. -- KO Myung-Hun Korean OS/2 User Community : https://www.os2.kr/