We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b3f993 commit 46703a4Copy full SHA for 46703a4
c/Makefile
@@ -102,7 +102,8 @@ include gitversion.mk
102
MEX?=mkoctfile --mex
103
104
ifneq ($(uname_S),Cygwin)
105
-CPPFLAGS += -D_GNU_SOURCE
+# We need _ISOC99_SOURCE for MinGW to recognize %z.
106
+CPPFLAGS += -D_GNU_SOURCE -D_ISOC99_SOURCE
107
else
108
CPPFLAGS += -U_GNU_SOURCE
109
endif
c/common.h
@@ -1,11 +1,6 @@
1
#ifndef LIBMISC_COMMON_H_
2
# define LIBMISC_COMMON_H_
3
4
-// Silence "unknown conversion type character 'z' in format" in MinGW compilers.
5
-#ifndef __USE_MINGW_ANSI_STDIO
6
-#define __USE_MINGW_ANSI_STDIO 1
7
-#endif
8
-
9
#ifdef R_PACKAGE
10
#define R_NO_REMAP
11
#include <R.h>
0 commit comments