From 4f565f2015c84ab0d9432ce077de82283ffbd35b Mon Sep 17 00:00:00 2001 From: Yann Dirson Date: Thu, 5 Dec 2013 23:18:31 +0100 Subject: [PATCH] #define _POSIX_C_SOURCE to get proper access to snprintf and vsnprintf. --- gnushogi/commondsp.c | 4 ++++ gnushogi/cursesdsp.c | 2 ++ gnushogi/dspwrappers.c | 3 +++ 3 files changed, 9 insertions(+), 0 deletions(-) diff --git a/gnushogi/commondsp.c b/gnushogi/commondsp.c index 8750fcd..4cbfb81 100644 --- a/gnushogi/commondsp.c +++ b/gnushogi/commondsp.c @@ -31,6 +31,10 @@ * */ +/* request *snprintf prototypes */ +#define _POSIX_C_SOURCE 200112L +#include + #if defined HAVE_GETTIMEOFDAY #include #endif diff --git a/gnushogi/cursesdsp.c b/gnushogi/cursesdsp.c index 906e44d..4d00015 100644 --- a/gnushogi/cursesdsp.c +++ b/gnushogi/cursesdsp.c @@ -30,6 +30,8 @@ * ---------------------------------------------------------------------- */ +/* request *snprintf prototypes*/ +#define _POSIX_C_SOURCE 200112L #include #include diff --git a/gnushogi/dspwrappers.c b/gnushogi/dspwrappers.c index 3cdfbce..ee5274d 100644 --- a/gnushogi/dspwrappers.c +++ b/gnushogi/dspwrappers.c @@ -32,6 +32,9 @@ * */ +/* request *snprintf prototypes*/ +#define _POSIX_C_SOURCE 200112L + #include "gnushogi.h" #include "dspwrappers.h" #include "rawdsp.h" -- 1.7.0.4