diff --git a/desktop/win32/source/unoinfo.cxx b/desktop/win32/source/unoinfo.cxx index 187a38d97dbf..d4458212c3c3 100644 --- a/desktop/win32/source/unoinfo.cxx +++ b/desktop/win32/source/unoinfo.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: unoinfo.cxx,v $ - * $Revision: 1.3 $ + * $Revision: 1.4 $ * * This file is part of OpenOffice.org. * @@ -81,8 +81,13 @@ void writePath( } +#ifdef __MINGW32__ +int main(int argc, char ** argv, char **) { + if (argc == 2 && strcmp(argv[1], "c++") == 0) { +#else int wmain(int argc, wchar_t ** argv, wchar_t **) { if (argc == 2 && wcscmp(argv[1], L"c++") == 0) { +#endif wchar_t path[MAX_PATH]; wchar_t * pathEnd = getBrandPath(path); if (tools::buildPath(path, path, pathEnd, MY_STRING(L"..\\basis-link")) @@ -102,7 +107,11 @@ int wmain(int argc, wchar_t ** argv, wchar_t **) { exit(EXIT_FAILURE); } writePath(path, pathEnd, MY_STRING(L"\\bin")); +#ifdef __MINGW32__ + } else if (argc == 2 && strcmp(argv[1], "java") == 0) { +#else } else if (argc == 2 && wcscmp(argv[1], L"java") == 0) { +#endif if (fwrite("1", 1, 1, stdout) != 1) { exit(EXIT_FAILURE); }