Re: [Mingw-w64-public] [PATCH] headers: _FORTIFY_SOURCE: Add _[w][s]open() and [s]open().

2019-09-30 Thread Liu Hao
在 2019/9/29 22:31, Christian Franke 写道: > Calling open("foo", O_WRONLY|O_CREAT) without 3rd argument may > (pseudo-)randomly set FILE_ATTRIBUTE_READONLY on the new file. With the > attached patch, the attribute is always set in this case to show that > something is wrong. A compile time warning is

Re: [Mingw-w64-public] [PATCH] include/libloaderapi{, 2}.h: Don't mistake `BOOL` for, `WINBOOL`.

2019-09-30 Thread Liu Hao
在 2019/9/29 22:43, Biswapriyo Nath 写道: > What is the difference between them? > > `BOOL` is a typedef name used in Objective-C [1]. Depending on the configuration it is sometimes a typedef for `bool` and otherwise for `signed char`, and could cause confusion where an effective `int` is expected (