summaryrefslogtreecommitdiff
path: root/cpp/test/IceUtil/unicode/Client.cpp
diff options
context:
space:
mode:
authorBenoit Foucher <benoit@zeroc.com>2012-08-06 10:24:57 +0200
committerBenoit Foucher <benoit@zeroc.com>2012-08-06 10:24:57 +0200
commite6f5dc2c89eda44fb0a3d444223131a31867a1b2 (patch)
treeb6bddfe0a0cccef45484314f47967d95a01472bb /cpp/test/IceUtil/unicode/Client.cpp
parentmore Java changes & tests (diff)
parentICE-4804 - Properties and case-mismatch (diff)
downloadice-e6f5dc2c89eda44fb0a3d444223131a31867a1b2.tar.bz2
ice-e6f5dc2c89eda44fb0a3d444223131a31867a1b2.tar.xz
ice-e6f5dc2c89eda44fb0a3d444223131a31867a1b2.zip
Merge remote-tracking branch 'origin/master' into encoding11
Conflicts: cpp/include/Ice/Stream.h cpp/include/Slice/Preprocessor.h rb/ruby/Makefile.mak
Diffstat (limited to 'cpp/test/IceUtil/unicode/Client.cpp')
-rw-r--r--cpp/test/IceUtil/unicode/Client.cpp19
1 files changed, 10 insertions, 9 deletions
diff --git a/cpp/test/IceUtil/unicode/Client.cpp b/cpp/test/IceUtil/unicode/Client.cpp
index 32425cc7454..f05cb7646b7 100644
--- a/cpp/test/IceUtil/unicode/Client.cpp
+++ b/cpp/test/IceUtil/unicode/Client.cpp
@@ -23,8 +23,8 @@ using namespace std;
// converts these BOMs back and forth.
//
-//COMPILERFIX: Borland C++ 2010 doesn't support wmain for console applications.
-#if defined(_WIN32) && !defined(__BCPLUSPLUS__)
+//COMPILERFIX: MINGW doesn't support wmain for console applications.
+#if defined(_WIN32) && !defined(__MINGW32__)
int
wmain(int argc, wchar_t* argv[])
@@ -42,11 +42,11 @@ main(int argc, char* argv[])
{
#ifdef _WIN32
-#ifdef __BCPLUSPLUS__
+# ifdef __MINGW32__
dir = argv[1];
-#else
+# else
dir = IceUtil::wstringToString(argv[1]);
-#endif
+# endif
dir += "\\";
#else
dir = argv[1];
@@ -179,7 +179,8 @@ main(int argc, char* argv[])
cout << "ok" << endl;
}
-#ifndef __BCPLUSPLUS__
+
+#ifndef __MINGW32__
{
cout << "testing UTF-8 filename... ";
IceUtilInternal::ifstream fn(dir + "filename.txt");
@@ -206,11 +207,11 @@ main(int argc, char* argv[])
int fd = IceUtilInternal::open(filepath, O_RDONLY);
test(fd > 0);
-#if defined(_MSC_VER) && (_MSC_VER >= 1400)
+# if defined(_MSC_VER) && (_MSC_VER >= 1400)
test(_close(fd) == 0);
-#else
+# else
test(close(fd) == 0);
-#endif
+# endif
FILE* f = IceUtilInternal::fopen(filepath, "r");
test(f != 0);