INTEGRATION: CWS mingwport14 (1.3.10); FILE MERGED

2008/06/21 14:22:13 tono 1.3.10.1: #i90950#: mingw port
This commit is contained in:
Vladimir Glazounov 2008-07-02 08:49:57 +00:00
parent e042a9dfc5
commit 65b25dcbc4

View file

@ -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);
}