OSDN Git Service

2002-01-24 Benjamin Kosnik <bkoz@redhat.com>
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / testsuite / 22_locale / numpunct_members_char.cc
index 862817e..04657eb 100644 (file)
@@ -86,6 +86,7 @@ void test01()
 // libstdc++/5280
 void test02()
 {
+#ifdef _GLIBCPP_HAVE_SETENV 
   // Set the global locale to non-"C".
   std::locale loc_de("de_DE");
   std::locale::global(loc_de);
@@ -97,6 +98,7 @@ void test02()
       test01();
       setenv("LANG", oldLANG, 1);
     }
+#endif
 }
 
 int main()