Warning C4996 'open': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _open.We know things like "#define open _open" is bad (due to how it affects variable and class methods of the same name),
Warning C4996 'read': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _read.
Warning C4996 'close': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _close.
Warning C4996 'write': The POSIX name for this item is deprecated. Instead, use the ISO C and C++ conformant name: _write.
POSIX function names
[..]
Microsoft renamed some POSIX and Microsoft-specific library functions in the CRT to conform with C99 and C++03 constraints on reserved and global implementation-defined names. Only the names are deprecated, not the functions themselves. In most cases, a leading underscore was added to the function name to create a conforming name. The compiler issues a deprecation warning for the original function name, and suggests the preferred name.
To fix this issue, we usually recommend you change your code to use the suggested function names instead. However, the updated names are Microsoft-specific. If you need to use the existing function names for portability reasons, you can turn off these warnings. The functions are still available in the library under their original names.
To turn off deprecation warnings for these functions, define the preprocessor macro _CRT_NONSTDC_NO_WARNINGS. You can define this macro at the command line by including the option /D_CRT_NONSTDC_NO_WARNINGS.
--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/4f599104-501b-9cfb-c789-36f7a9d356c5%40online.de.
I was able to get _wopen() to work in mingw by modifying that program to use a wchar_t string,
--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/08dfb608-7a77-98aa-5e5b-ffc3eb4bda53%40online.de.
On 2/17/21 2:56 PM, Bill Spitzak wrote:
It looks like fl_open and fl_fopen already exist in fltk
On 2/17/21 3:30 PM, Greg Ercolano wrote:
On 2/17/21 2:56 PM, Bill Spitzak wrote:
It looks like fl_open and fl_fopen already exist in fltk
Nice, looks like we inherited this from OksiD's utf8 port.
Well that should be easy to fix the warnings in fluid then..!
I've just committed a change to that statement:
(2) Use a new file just for the nanosvg implementation (maybe
fl_nanosvg.cxx?) and use the #pragma before the inclusion of nanosvg
headers (no restore needed [1]).
--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/5d026293-5e04-406f-8ced-ecaec6ca42f2n%40googlegroups.com.
So after all I think both options (1: extra implementation file) and (2:
see patch) are fine and I'm undecided.
Votes, anybody?