diff options
Diffstat (limited to 'cpp/test')
-rw-r--r-- | cpp/test/Freeze/dbmap/Client.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/cpp/test/Freeze/dbmap/Client.cpp b/cpp/test/Freeze/dbmap/Client.cpp index ba04554b6cb..bc9d3caeac5 100644 --- a/cpp/test/Freeze/dbmap/Client.cpp +++ b/cpp/test/Freeze/dbmap/Client.cpp @@ -24,9 +24,12 @@ using namespace std; using namespace Ice; using namespace Freeze; -// The following variable is extern instead of static due to -// a Sun C++ 5.4 template bug -extern Byte alphabetChars[] = "abcdefghijklmnopqrstuvwxyz"; +#ifdef __SUNPRO_CC +extern +#else +static +#endif +Byte alphabetChars[] = "abcdefghijklmnopqrstuvwxyz"; vector<Byte> alphabet; |