OSDN Git Service

2009-04-21 Kai Tietz <kai.tietz@onevision.com>
[pf3gnuchains/gcc-fork.git] / gcc / config / i386 / mingw-w64.h
1 /* Operating system specific defines to be used when targeting GCC for
2    hosting on Windows 32/64 via mingw-w64 runtime, using GNU tools and
3    the Windows API Library.
4    Copyright (C) 2009,
5    2009 Free Software Foundation, Inc.
6
7 This file is part of GCC.
8
9 GCC is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 3, or (at your option)
12 any later version.
13
14 GCC is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 GNU General Public License for more details.
18
19 You should have received a copy of the GNU General Public License
20 along with GCC; see the file COPYING3.  If not see
21 <http://www.gnu.org/licenses/>.  */
22
23 /* Enable -municode feature.  */
24
25 #undef CPP_SPEC
26 #define CPP_SPEC "%{posix:-D_POSIX_SOURCE} %{mthreads:-D_MT} \
27   %{municode:-DUNICODE}"
28
29 #undef STARTFILE_SPEC
30 #define STARTFILE_SPEC "%{shared|mdll:dllcrt2%O%s} \
31   %{!shared:%{!mdll:%{!municode:crt2%O%s}}} \
32   %{!shared:%{!mdll:%{municode:crt2u%O%s}}} \
33   %{pg:gcrt2%O%s} \
34   crtbegin.o%s"