Skip to content

Commit 46703a4

Browse files
committed
fixup
1 parent 9b3f993 commit 46703a4

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

c/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ include gitversion.mk
102102
MEX?=mkoctfile --mex
103103

104104
ifneq ($(uname_S),Cygwin)
105-
CPPFLAGS += -D_GNU_SOURCE
105+
# We need _ISOC99_SOURCE for MinGW to recognize %z.
106+
CPPFLAGS += -D_GNU_SOURCE -D_ISOC99_SOURCE
106107
else
107108
CPPFLAGS += -U_GNU_SOURCE
108109
endif

c/common.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
#ifndef LIBMISC_COMMON_H_
22
# define LIBMISC_COMMON_H_
33

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-
94
#ifdef R_PACKAGE
105
#define R_NO_REMAP
116
#include <R.h>

0 commit comments

Comments
 (0)