Windows, meson build : use posix *printf family function
authorVincent Torri <vincent.torri@gmail.com>
Thu, 21 Mar 2019 10:26:15 +0000 (11:26 +0100)
committerYeongjong Lee <yj34.lee@samsung.com>
Tue, 2 Apr 2019 03:45:17 +0000 (12:45 +0900)
Summary: the Windows libc has different format flags for the *printf functions, fix this by using the posix version provided with mingw

Test Plan: compilation

Reviewers: zmike, raster, q66

Reviewed By: q66

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D8432

meson.build

index c6d30b4..03648fb 100644 (file)
@@ -120,6 +120,7 @@ foreach lang : ['c', 'objc', 'cpp']
     else
       error('Version of targetted Windows incorrect')
     endif
+    add_global_arguments('-D__USE_MINGW_ANSI_STDIO', language: lang)
   endif
 endforeach