Commit f6933ae4 authored by Dimitrie O. Paun's avatar Dimitrie O. Paun Committed by Alexandre Julliard

Compile with WINE_UNICODE_NATIVE defined, essential for C++.

New -V option to display the version. Do not link -lc, screws up linking, just get the default.
parent 0fcada9f
......@@ -72,6 +72,10 @@ int main(int argc, char **argv)
case 'v': /* verbose */
if (argv[i][2] == 0) verbose = 1;
break;
case 'V':
printf("winegcc v0.3\n");
exit(0);
break;
case 'm':
if (strcmp("-mno-cygwin", argv[i]) == 0)
use_msvcrt = 1;
......@@ -125,6 +129,7 @@ int main(int argc, char **argv)
if (use_msvcrt) gcc_argv[i++] = "-I" INCLUDEDIR "/msvcrt";
gcc_argv[i++] = "-I" INCLUDEDIR "/windows";
}
gcc_argv[i++] = "-DWINE_UNICODE_NATIVE";
gcc_argv[i++] = "-D__int8=char";
gcc_argv[i++] = "-D__int16=short";
gcc_argv[i++] = "-D__int32=int";
......@@ -145,7 +150,7 @@ int main(int argc, char **argv)
if (linking)
{
if (use_stdlib) gcc_argv[i++] = use_msvcrt ? "-lmsvcrt" : "-lc";
if (use_stdlib && use_msvcrt) gcc_argv[i++] = "-lmsvcrt";
}
gcc_argv[i] = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment