From beac3bec51bcc64439cfe51b4c4e7b1d0d244b62 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Thu, 18 May 2023 17:50:40 +0000 Subject: Add _C99_SOURCE in an attempt to get it to compile on macOS Ventura Xcode 14.3 git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4552 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- lib/util/nstring.c | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/util') diff --git a/lib/util/nstring.c b/lib/util/nstring.c index 4bbb041f..6663ebf0 100644 --- a/lib/util/nstring.c +++ b/lib/util/nstring.c @@ -24,6 +24,7 @@ Code in this file is contributed to the public domain by its authors. =============================================================================*/ #define _DEFAULT_SOURCE /* New name for SVID & BSD source defines */ +#define _C99_SOURCE /* Make sure snprintf() is in stdio.h */ #define _XOPEN_SOURCE 500 /* Make sure strdup() is in string.h */ #define _BSD_SOURCE /* Make sure strdup() is in string.h */ #define _GNU_SOURCE -- cgit 1.4.1