4ec6d9af330a6981d90d87e02c3959360384d527
[gcc.git] / gcc / config / rs6000 / cygwin32.h
1 /* Operating system specific defines to be used when targeting GCC for
2 hosting on Windows NT 3.x, using the Cygnus API
3
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.
7
8 Copyright (C) 1996 Free Software Foundation, Inc.
9
10 This file is part of GNU CC.
11
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.
16
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.
21
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. */
26
27
28 /* Ugly hack */
29 #include "rs6000/win-nt.h"
30
31
32 #ifdef CPP_PREDEFINES
33 #undef CPP_PREDEFINES
34 #endif
35
36 #define CPP_PREDEFINES "-D_WIN32 -DWINNT -D__CYGWIN32__ -DPOSIX \
37 -D_POWER -D_ARCH_PPC -D__PPC__ -Asystem(winnt) -Acpu(powerpc) -Amachine(powerpc)"
38
39 /* We have to dynamic link to get to the system dlls,
40 and I've put all of libc and libm and the unix stuff into
41 cygwin.dll, the import library is called 'libcygwin.a' */
42
43 #undef LIB_SPEC
44 #define LIB_SPEC "-lcygwin"
45
46
47 #undef LINK_SPEC
48 #define LINK_SPEC "%{v:-V}"
49
50
51 #undef STARTFILE_SPEC
52 #define STARTFILE_SPEC "crti%O%s %{!:crt0%O%s}"
53
54 #undef ENDFILE_SPEC
55 #define ENDFILE_SPEC "crtn%O%s"
56
57 #define PTRDIFF_TYPE "int"
58 #define WCHAR_UNSIGNED 1
59 #define WCHAR_TYPE_SIZE 16
60 #define WCHAR_TYPE "short unsigned int"
61
62 #define DBX_DEBUGGING_INFO
63 #undef SDB_DEBUGGING_INFO
64 #define PREFERRED_DEBUGGING_TYPE DBX_DEBUG