import of gcc-2.8
[official-gcc.git] / gcc / config / rs6000 / cygwin32.h
blobf527736a0200b364774dc5915d351f56fc6725dc
1 /* Operating system specific defines to be used when targeting GCC for
2 hosting on Windows NT 3.x, using the Cygnus API
4 This is different to the winnt.h file, since that is used
5 to build GCC for use with a windows style library and tool
6 set, winnt.h uses the Microsoft tools to do that.
8 Copyright (C) 1996, 1997 Free Software Foundation, Inc.
10 This file is part of GNU CC.
12 GNU CC is free software; you can redistribute it and/or modify
13 it under the terms of the GNU General Public License as published by
14 the Free Software Foundation; either version 2, or (at your option)
15 any later version.
17 GNU CC is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 GNU General Public License for more details.
22 You should have received a copy of the GNU General Public License
23 along with GNU CC; see the file COPYING. If not, write to
24 the Free Software Foundation, 59 Temple Place - Suite 330,
25 Boston, MA 02111-1307, USA. */
28 /* Ugly hack */
29 #include "rs6000/win-nt.h"
32 #ifdef CPP_PREDEFINES
33 #undef CPP_PREDEFINES
34 #endif
36 #define CPP_PREDEFINES "-D_WIN32 -DWINNT -D__CYGWIN32__ -DPOSIX \
37 -D_POWER -D_ARCH_PPC -D__PPC__ -Asystem(winnt) -Acpu(powerpc) -Amachine(powerpc)"
39 #undef CPP_SPEC
40 #define CPP_SPEC "-remap %{posix: -D_POSIX_SOURCE} %(cpp_cpu)"
42 /* We have to dynamic link to get to the system DLLs. All of libc, libm and
43 the Unix stuff is in cygwin.dll. The import library is called
44 'libcygwin.a'. For Windows applications, include more libraries, but
45 always include kernel32. We'd like to specific subsystem windows to
46 ld, but that doesn't work just yet. */
48 #undef LIB_SPEC
49 #define LIB_SPEC "-lcygwin %{mwindows:-luser32 -lgdi32 -lcomdlg32} -lkernel32"
51 #undef LINK_SPEC
52 #define LINK_SPEC "%{v:-V}"
54 #undef STARTFILE_SPEC
55 #define STARTFILE_SPEC "crti%O%s crt0%O%s"
57 #undef ENDFILE_SPEC
58 #define ENDFILE_SPEC "crtn%O%s"
60 #define PTRDIFF_TYPE "int"
61 #define WCHAR_UNSIGNED 1
62 #define WCHAR_TYPE_SIZE 16
63 #define WCHAR_TYPE "short unsigned int"
65 #define DBX_DEBUGGING_INFO
66 #undef SDB_DEBUGGING_INFO
67 #define PREFERRED_DEBUGGING_TYPE DBX_DEBUG