From df7fa6c340b77e3f598db6eb33fbb206e0cf0359 Mon Sep 17 00:00:00 2001 From: Andoni Morales Alastruey Date: Wed, 16 Jan 2019 15:29:48 +0100 Subject: flac: fix use of sscanf with newer MinGW --- recipes/flac.recipe | 3 +++ 1 file changed, 3 insertions(+) (limited to 'recipes/flac.recipe') diff --git a/recipes/flac.recipe b/recipes/flac.recipe index c8596cf7..898b5bcd 100644 --- a/recipes/flac.recipe +++ b/recipes/flac.recipe @@ -43,4 +43,7 @@ class Recipe(recipe.Recipe): 'cpu.c'), {'# undef USE_OBSOLETE_SIGCONTEXT_FLAVOR': '#define USE_OBSOLETE_SIGCONTEXT_FLAVOR'}) + elif self.config.target_platform == Platform.WINDOWS: + # Newer MinGW requires this define for sscanf in stdio.h + self.append_env('CFLAGS', '-D__USE_MINGW_ANSI_STDIO=1') await super(Recipe, self).configure() -- cgit v1.2.3