428
|
1 /* system description file for mingw32.
|
|
2 Copyright (C) 1993, 1994, 1995, 1999 Free Software Foundation, Inc.
|
1111
|
3 Copyright (C) 2001, 2002 Ben Wing.
|
428
|
4
|
613
|
5 This file is part of XEmacs.
|
428
|
6
|
613
|
7 XEmacs is free software; you can redistribute it and/or modify
|
428
|
8 it under the terms of the GNU General Public License as published by
|
|
9 the Free Software Foundation; either version 2, or (at your option)
|
|
10 any later version.
|
|
11
|
613
|
12 XEmacs is distributed in the hope that it will be useful,
|
428
|
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
15 GNU General Public License for more details.
|
|
16
|
|
17 You should have received a copy of the GNU General Public License
|
|
18 along with XEmacs; see the file COPYING. If not, write to
|
|
19 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
20 Boston, MA 02111-1307, USA. */
|
|
21
|
|
22 /* based on cygwin32.h by Andy Piper <andy@xemacs.org> */
|
|
23
|
1111
|
24 /* NOTE: MinGW is a way of using GCC to target the native Windows
|
|
25 environment. This works similarly to building with Cygwin, but the
|
|
26 resulting executable does not use the Cygwin DLL. Instead, MINGW
|
|
27 provides import libraries for the standard C library DLL's (specifically
|
|
28 CRTDLL -- #### how does this differ from MSVCRT and LIBC.LIB?). This
|
|
29 means that code for MinGW will be very similar to code written for
|
|
30 VC++. See comment in windowsnt.h for more information on how Cygwin
|
|
31 and native Windows relate. */
|
|
32
|
771
|
33 #include "win32-native.h"
|
428
|
34
|
442
|
35 #define MINGW
|
428
|
36
|
|
37 #ifndef ORDINARY_LINK
|
|
38 #define ORDINARY_LINK
|
|
39 #endif
|
|
40
|
771
|
41 #define C_SWITCH_SYSTEM "-mno-cygwin -fno-caller-saves -DWIN32_NATIVE -DMINGW"
|
442
|
42 #define LIBS_SYSTEM "-mno-cygwin -mwindows -lwinmm -lwsock32"
|
|
43 #define WIN32_LEAN_AND_MEAN
|
428
|
44
|
|
45 #define TEXT_START -1
|
|
46 #define HEAP_IN_DATA
|
|
47 #define UNEXEC "unexcw.o"
|
|
48
|
|
49 #define TIME_ONESHOT 0
|
|
50 #define TIME_PERIODIC 1
|
|
51 #define LOCALE_USE_CP_ACP 0x40000000
|
|
52 #define NSIG 23
|
|
53
|
442
|
54 /* this is necessary to get the TCS_* definitions in <commctrl.h> */
|
|
55 #define _WIN32_IE 0x0400
|
428
|
56
|
|
57 /* translate NT world unexec stuff to our a.out definitions */
|
|
58
|
|
59 #define strnicmp strncasecmp
|
|
60 /* #ifndef HAVE_SOCKETS */
|
|
61 #define HAVE_SOCKETS
|
|
62 /* #endif */
|
771
|
63 #define OBJECTS_SYSTEM nt.o ntheap.o ntproc.o dired-msw.o
|
428
|
64
|
|
65 #undef MAIL_USE_SYSTEM_LOCK
|
|
66 #define HAVE_MSW_C_DIRED
|
|
67
|
442
|
68 /* Do not define LOAD_AVE_TYPE or LOAD_AVE_CVT
|
|
69 since there is no load average available. */
|
428
|
70
|
|
71 /* define MAIL_USE_FLOCK if the mailer uses flock
|
|
72 to interlock access to /usr/spool/mail/$USER.
|
|
73 The alternative is that a lock file named
|
|
74 /usr/spool/mail/$USER.lock. */
|
|
75
|
|
76 #ifndef NOT_C_CODE
|
|
77 #include <stdlib.h>
|
546
|
78 #include <../mingw/process.h>
|
428
|
79 #define mkdir __mkdir
|
|
80 #include <dir.h>
|
|
81 #undef mkdir
|
771
|
82 #ifdef HAVE_CYGWIN_VERSION_H
|
|
83 #include <cygwin/version.h>
|
428
|
84 #endif
|
771
|
85 #endif /* NOT_C_CODE */
|
613
|
86
|
|
87 #define DONT_USE_LITOUT
|
|
88
|
428
|
89 /* Stuff that gets set wrongly or otherwise */
|
|
90 #define HAVE_GETTIMEOFDAY
|
|
91 #define HAVE_SELECT
|
442
|
92 /* systime.h includes winsock.h which defines timeval */
|
|
93 #define HAVE_TIMEVAL
|
|
94 #define HAVE_GETPAGESIZE
|
|
95 #define getpagesize() 4096
|
|
96 #ifndef HAVE_H_ERRNO
|
|
97 #define HAVE_H_ERRNO
|
|
98 #endif
|
|
99 #ifndef HAVE_TZNAME
|
|
100 #define HAVE_TZNAME
|
|
101 #endif
|
428
|
102
|
|
103 #undef GETTIMEOFDAY_ONE_ARGUMENT
|
|
104 #undef HAVE_SYS_WAIT_H
|
|
105 #undef HAVE_TERMIOS
|
|
106 #undef SYSV_SYSTEM_DIR
|
442
|
107 #undef CLASH_DETECTION
|