Huh?? I can't believe that MSVC doesn't support strndup() !!!

This commit is contained in:
John Emmas 2019-06-23 15:52:59 +01:00
parent 675759c167
commit 1a7a23a5ce
1 changed files with 1 additions and 0 deletions

View File

@ -29,6 +29,7 @@
#ifdef HAVE_GLIB
# include <glib/gstdio.h>
# define ptf_open g_fopen
# define strndup g_strndup
#else
# define ptf_open fopen
#endif