ansilove

ANSI and ASCII art to PNG converter in C
Log | Files | Refs | README | LICENSE

commit c4194bbe0dbae028bb35d465c4f6342c1d87b486
parent ac503637bd8ba8b613ea21c294bb7f66651d8720
Author: Frederic Cambus <fred@statdns.com>
Date:   Thu, 14 Jul 2016 00:18:34 +0200

Define _NETBSD_SOURCE macro to make 'strndup' declaration visible on NetBSD

Diffstat:
Msrc/substr.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/substr.c b/src/substr.c @@ -10,6 +10,7 @@ // #define _XOPEN_SOURCE 700 +#define _NETBSD_SOURCE #include <string.h> char *substr(char *str, size_t begin, size_t len)