]> git.lyx.org Git - features.git/commitdiff
Don't use locale facilities for sorting when compiling with GCC 3
authorEnrico Forestieri <forenr@lyx.org>
Thu, 12 Jul 2007 10:26:10 +0000 (10:26 +0000)
committerEnrico Forestieri <forenr@lyx.org>
Thu, 12 Jul 2007 10:26:10 +0000 (10:26 +0000)
as it is missing proper locale facets support.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19054 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/controllers/frontend_helpers.cpp

index a272eb23092f7091e54ad3977f63b1f2a4f2c651..fcf831c00586ac10c3b6c3a1b24bc47e1140bbb1 100644 (file)
@@ -1108,7 +1108,7 @@ class Sorter
                                      LanguagePair, bool>
 {
 public:
-#if !defined(USE_WCHAR_T) && defined(__GNUC__)
+#if defined(__GNUC__) && (!defined(USE_WCHAR_T) || __GNUC__ < 4)
        bool operator()(LanguagePair const & lhs,
                        LanguagePair const & rhs) const {
                return lhs.first < rhs.first;