From 1a7a23a5cea844431a85fa49933b5ea345bf3896 Mon Sep 17 00:00:00 2001 From: John Emmas Date: Sun, 23 Jun 2019 15:52:59 +0100 Subject: [PATCH] Huh?? I can't believe that MSVC doesn't support strndup() !!! --- libs/ptformat/ptformat.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/ptformat/ptformat.cc b/libs/ptformat/ptformat.cc index b6b13b745f4..26381a6a907 100644 --- a/libs/ptformat/ptformat.cc +++ b/libs/ptformat/ptformat.cc @@ -29,6 +29,7 @@ #ifdef HAVE_GLIB # include # define ptf_open g_fopen +# define strndup g_strndup #else # define ptf_open fopen #endif