summaryrefslogtreecommitdiff
path: root/recipes/flac.recipe
diff options
context:
space:
mode:
authorAndoni Morales Alastruey <ylatuya@gmail.com>2019-01-16 15:29:48 +0100
committerNicolas Dufresne <nicolas.dufresne@collabora.com>2019-06-07 10:15:44 -0400
commitdf7fa6c340b77e3f598db6eb33fbb206e0cf0359 (patch)
treecd733ff375834241b0505e4c5ebe4215e8d0d5be /recipes/flac.recipe
parent4c4214cea02f993f7121f65568fa97ac2ea4a0a9 (diff)
flac: fix use of sscanf with newer MinGW
Diffstat (limited to 'recipes/flac.recipe')
-rw-r--r--recipes/flac.recipe3
1 files changed, 3 insertions, 0 deletions
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()