#define _POSIX_C_SOURCE to get proper access to snprintf and vsnprintf.
authorYann Dirson <ydirson@free.fr>
Thu, 5 Dec 2013 22:18:31 +0000 (23:18 +0100)
committerYann Dirson <ydirson@free.fr>
Thu, 5 Dec 2013 22:18:31 +0000 (23:18 +0100)
gnushogi/commondsp.c
gnushogi/cursesdsp.c
gnushogi/dspwrappers.c

index 8750fcd..4cbfb81 100644 (file)
  *
  */
 
+/* request *snprintf prototypes */
+#define _POSIX_C_SOURCE 200112L
+#include <stdio.h>
+
 #if defined HAVE_GETTIMEOFDAY
 #include <sys/time.h>
 #endif
index 906e44d..4d00015 100644 (file)
@@ -30,6 +30,8 @@
  * ----------------------------------------------------------------------
  */
 
+/* request *snprintf prototypes*/
+#define _POSIX_C_SOURCE 200112L
 
 #include <ctype.h>
 #include <signal.h>
index 3cdfbce..ee5274d 100644 (file)
@@ -32,6 +32,9 @@
  *
  */
 
+/* request *snprintf prototypes*/
+#define _POSIX_C_SOURCE 200112L
+
 #include "gnushogi.h"
 #include "dspwrappers.h"
 #include "rawdsp.h"