[CONC-106] Native client fopen_s problem Created: 2014-09-17  Updated: 2014-09-17  Resolved: 2014-09-17

Status: Closed
Project: MariaDB Connector/C
Component/s: None
Affects Version/s: 2.0.0
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Marian Munteanu Assignee: Georg Richter
Resolution: Won't Fix Votes: 0
Labels: None
Environment:

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



 Comments   
Comment by Georg Richter [ 2014-09-17 ]

Windows XP EOL has ended, so we will not provide XP fixes in future versions.

Generated at Thu Feb 08 03:02:56 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.