diff options
author | Redirect 'Slash' NIL <redirect.slash.nil@gmail.com> | 2009-10-19 17:55:40 -0700 |
---|---|---|
committer | David Brownell <dbrownell@users.sourceforge.net> | 2009-10-19 17:55:40 -0700 |
commit | fb61f527312aa9aef1b5286e63d60ae8591e6bd7 (patch) | |
tree | e98af8ceae7bd85e32b01253f9f10847e54c88d9 /configure.in | |
parent | 0388a9c0e5c9724950d5a41e3b7cf83fa26a1898 (diff) | |
download | riscv-openocd-fb61f527312aa9aef1b5286e63d60ae8591e6bd7.zip riscv-openocd-fb61f527312aa9aef1b5286e63d60ae8591e6bd7.tar.gz riscv-openocd-fb61f527312aa9aef1b5286e63d60ae8591e6bd7.tar.bz2 |
MinGW: always use "-D__USE_MINGW_ANSI_STDIO"
This is unfortunately needed to make stdio work like OpenOCD expects -- matching
the ANSI-C standard, instead of MS-Windows.
I tested it in both MinGW-W64 on Vista 64 and MinGW-W32 on XP, and I don't
see any adverse effects to enabling it for all MinGW versions.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 8e2881c..1d3f0ec 100644 --- a/configure.in +++ b/configure.in @@ -481,6 +481,8 @@ case $host in AC_MSG_WARN([--disable-parport-giveio is not supported by MinGW32 hosts]) fi parport_use_giveio=yes + + CFLAGS="$CFLAGS -D__USE_MINGW_ANSI_STDIO" AC_DEFINE(IS_MINGW, 1, [1 if building for MinGW.]) AC_DEFINE(IS_WIN32, 1, [1 if building for Win32.]) |