Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Won't Fix
-
2.0.0
-
None
-
None
-
None
-
Windows XP, MinGW
Description
When building the native client (C connector) with MinGW, when try to run on Windows XP, we get the error:
The procedure entry point fopen_s could not be located in the dynamic link library msvcrt.dll
The problem is in https://github.com/MariaDB/connector-c/blob/master/libmariadb/my_fopen.c on line 39:
#ifdef _WIN32
if (fopen_s(&fd, FileName, type) == 0)
#else
if ((fd = fopen(FileName, type)) != 0)
#endif
Similar problem here:
https://codereview.chromium.org/12189010/
https://trac.torproject.org/projects/tor/ticket/9084