summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2011-03-01 22:19:08 -0500
committerKohei Yoshida <kyoshida@novell.com>2011-03-01 22:20:57 -0500
commit7b981b7cab15e0fc2ebb159df2d40c3a2499b265 (patch)
treee300dbf24dd6d3b9ac372fd4849895e5eac7ded7 /vcl
parentfea864b6056d17f09e30d1f4426c9ba7b35c894a (diff)
Many of us still use compilers that don't support C++0x properly.
This fixes a build breakage in svtools, in ctrlbox.cxx.
Diffstat (limited to 'vcl')
-rw-r--r--vcl/inc/vcl/fontcapabilities.hxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/vcl/inc/vcl/fontcapabilities.hxx b/vcl/inc/vcl/fontcapabilities.hxx
index 37a5054531e0..cabe23921f80 100644
--- a/vcl/inc/vcl/fontcapabilities.hxx
+++ b/vcl/inc/vcl/fontcapabilities.hxx
@@ -33,7 +33,11 @@
namespace vcl
{
+#ifdef __GXX_EXPERIMENTAL_CXX0X__
enum UnicodeCoverage
+#else
+ struct UnicodeCoverage { enum
+#endif
{
BASIC_LATIN = 0,
LATIN_1_SUPPLEMENT = 1,
@@ -165,8 +169,15 @@ namespace vcl
RESERVED5 = 127,
MAX_UC_ENUM = 128
};
+#ifndef __GXX_EXPERIMENTAL_CXX0X__
+ };
+#endif
+#ifdef __GXX_EXPERIMENTAL_CXX0X__
enum CodePageCoverage
+#else
+ struct CodePageCoverage { enum
+#endif
{
CP1252 = 0,
CP1250 = 1,
@@ -201,6 +212,9 @@ namespace vcl
CP437 = 63,
MAX_CP_ENUM = 64
};
+#ifndef __GXX_EXPERIMENTAL_CXX0X__
+ };
+#endif
struct FontCapabilities
{