Commit e2e355ab authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Use GNU/Mingw printf for Mingw builds

This should kill most warnings when crosscompiling for Windows
parent 07e70c2f
...@@ -37,6 +37,7 @@ case "${host_os}" in ...@@ -37,6 +37,7 @@ case "${host_os}" in
SYS=mingw32 SYS=mingw32
AC_DEFINE([_WIN32_WINNT], 0x0501, [Define to '0x0500' for Windows XP APIs.]) AC_DEFINE([_WIN32_WINNT], 0x0501, [Define to '0x0500' for Windows XP APIs.])
AC_DEFINE([_WIN32_IE], 0x0501, [Define to '0x0501' for IE 5.01.]) AC_DEFINE([_WIN32_IE], 0x0501, [Define to '0x0501' for IE 5.01.])
CPPFLAGS="${CPPFLAGS} -D__USE_MINGW_ANSI_STDIO=1"
;; ;;
esac esac
;; ;;
......
...@@ -21,7 +21,11 @@ ...@@ -21,7 +21,11 @@
#define LIBBLURAY_ATTRIBUTES_H_ #define LIBBLURAY_ATTRIBUTES_H_
#if defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3 )) #if defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3 ))
# if defined(_WIN32)
# define BD_ATTR_FORMAT_PRINTF(format,var) __attribute__((__format__(__gnu_printf__,format,var)))
# else
# define BD_ATTR_FORMAT_PRINTF(format,var) __attribute__((__format__(__printf__,format,var))) # define BD_ATTR_FORMAT_PRINTF(format,var) __attribute__((__format__(__printf__,format,var)))
# endif
# define BD_ATTR_MALLOC __attribute__((__malloc__)) # define BD_ATTR_MALLOC __attribute__((__malloc__))
# define BD_ATTR_PACKED __attribute__((packed)) # define BD_ATTR_PACKED __attribute__((packed))
#else #else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment