summaryrefslogtreecommitdiff
path: root/svx/source/gengal
diff options
context:
space:
mode:
authorFridrich Štrba <fridrich.strba@bluewin.ch>2013-06-10 13:01:16 +0200
committerFridrich Štrba <fridrich.strba@bluewin.ch>2013-06-10 14:03:36 +0200
commit1af337fc9201a22d5beaac3452b8441c458b52e4 (patch)
tree188c98bedaabe89f5732f298a206bfa985c2c1fc /svx/source/gengal
parentc74a6e6bce9bfcae74e1a264557197176bba75e7 (diff)
mingw64: include sal/types.h to be sure we are using C99 formatting strings
Change-Id: Idb78cb18ed7718996628233dfb546eb1f6f345c1
Diffstat (limited to 'svx/source/gengal')
-rw-r--r--svx/source/gengal/gengal.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/svx/source/gengal/gengal.cxx b/svx/source/gengal/gengal.cxx
index 0f68d830e2ff..9a888affe4fa 100644
--- a/svx/source/gengal/gengal.cxx
+++ b/svx/source/gengal/gengal.cxx
@@ -7,6 +7,12 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
+
+// Include this before stdio.h for the __MINGW32__ sake.
+// This header contails a define that modifies the way
+// formating strings work for the mingw platforms.
+#include <sal/types.h>
+
#include <stdio.h>
#ifndef _WIN32
#include <unistd.h>