]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/config/i386/mingw32.h
* mips.md (return_internal): Change mode from SImode to VOIDmode.
[thirdparty/gcc.git] / gcc / config / i386 / mingw32.h
CommitLineData
6407d0da
RK
1/* Operating system specific defines to be used when targeting GCC for
2 hosting on Windows32, using GNU tools and the Windows32 API Library,
3 as distinct from winnt.h, which is used to build GCC for use with a
4 windows style library and tool set and uses the Microsoft tools.
5 Copyright (C) 1997 Free Software Foundation, Inc.
6
7This file is part of GNU CC.
8
9GNU CC is free software; you can redistribute it and/or modify
10it under the terms of the GNU General Public License as published by
11the Free Software Foundation; either version 2, or (at your option)
12any later version.
13
14GNU CC is distributed in the hope that it will be useful,
15but WITHOUT ANY WARRANTY; without even the implied warranty of
16MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17GNU General Public License for more details.
18
19You should have received a copy of the GNU General Public License
20along with GNU CC; see the file COPYING. If not, write to
21the Free Software Foundation, 59 Temple Place - Suite 330,
22Boston, MA 02111-1307, USA. */
23
24/* Most of this is the same as for Cygwin32, except for changing some
25 specs. */
26
27#include "i386/cygwin32.h"
28
29#undef CPP_PREDEFINES
30#define CPP_PREDEFINES "-Di386 -D_WIN32 -DWIN32 -D__WIN32__ \
31 -D__MINGW32__ -DWINNT -D_X86_=1 -D__STDC__=1\
32 -D__stdcall=__attribute__((__stdcall__)) \
33 -D__cdecl=__attribute__((__cdecl__)) \
34 -Asystem(winnt) -Acpu(i386) -Amachine(i386)"
35
36/* For Windows applications, include more libraries, but always include
37 kernel32. */
38#undef LIB_SPEC
39#define LIB_SPEC "%{windows:-luser32 -lgdi32 -lcomdlg32} -lkernel32"
40
41/* Include in the Windows32 API libraries with libgcc */
42#undef LIBGCC_SPEC
43#define LIBGCC_SPEC "-lmingw32 -lgcc -lmoldname -lcrtdll"
44
45/* Specify a different entry point when linking a DLL */
46#undef LINK_SPEC
47#define LINK_SPEC "%{windows:--subsystem windows} %{dll:--dll -e _DllMainCRTStartup@12}"