[Libreoffice-commits] .: i18npool/source

Tor Lillqvist tml at kemper.freedesktop.org
Sat Jun 11 15:27:50 PDT 2011


 i18npool/source/paper/paper.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit d68c1b4abf3274390a708b48f068d9870d4a9c17
Author: Tor Lillqvist <tml at iki.fi>
Date:   Sun Jun 12 01:26:33 2011 +0300

    Don't include <langinfo.h> unless needed

diff --git a/i18npool/source/paper/paper.cxx b/i18npool/source/paper/paper.cxx
index 0fb219c..2c7bc91 100644
--- a/i18npool/source/paper/paper.cxx
+++ b/i18npool/source/paper/paper.cxx
@@ -49,8 +49,10 @@
 #include <stdio.h>
 #include <string.h>
 #include <locale.h>
+#if defined(LC_PAPER) && defined(_GNU_SOURCE)
 #include <langinfo.h>
 #endif
+#endif
 
 struct PageDesc
 {


More information about the Libreoffice-commits mailing list