Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit eabdbff

Browse files
committed
put #undefs insize comments; rationalize MPW support
1 parent e5df962 commit eabdbff

1 file changed

Lines changed: 89 additions & 88 deletions

File tree

Mac/Include/config.h

Lines changed: 89 additions & 88 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
/* config.h for Macintosh THINK C 6.0, CodeWarrior 4 and MPW 3.2. */
22

3-
#ifdef MPW
4-
/* This must be is MPW 3.x */
5-
#define MPW_3 1
3+
#ifdef applec
4+
#define MPW
65
#endif
76

87
/* Define if on Macintosh (THINK_C, MPW or __MWERKS__ should also be defined) */
8+
#ifndef macintosh
99
#define macintosh
10+
#endif
1011

1112
#ifdef THINK_C
1213
#define HAVE_FOPENRF
@@ -16,102 +17,102 @@
1617
System headers sometimes define this.
1718
We just want to avoid a redefinition error message. */
1819
#ifndef _ALL_SOURCE
19-
#undef _ALL_SOURCE
20+
/* #undef _ALL_SOURCE */
2021
#endif
2122

2223
/* Define if type char is unsigned and you are not using gcc. */
23-
#undef __CHAR_UNSIGNED__
24+
/* #undef __CHAR_UNSIGNED__ */
2425

2526
/* Define to empty if the keyword does not work. */
26-
#undef const
27+
/* #undef const */
2728

2829
/* Define if you have dirent.h. */
29-
#undef DIRENT
30+
/* #undef DIRENT */
3031

3132
/* Define to the type of elements in the array set by `getgroups'.
3233
Usually this is either `int' or `gid_t'. */
33-
#undef GETGROUPS_T
34+
/* #undef GETGROUPS_T */
3435

3536
/* Define to `int' if <sys/types.h> doesn't define. */
36-
#undef gid_t
37+
/* #undef gid_t */
3738

3839
/* Define if your struct tm has tm_zone. */
39-
#undef HAVE_TM_ZONE
40+
/* #undef HAVE_TM_ZONE */
4041

4142
/* Define if you don't have tm_zone but do have the external array
4243
tzname. */
43-
#undef HAVE_TZNAME
44+
/* #undef HAVE_TZNAME */
4445

4546
/* Define if on MINIX. */
46-
#undef _MINIX
47+
/* #undef _MINIX */
4748

4849
/* Define to `int' if <sys/types.h> doesn't define. */
49-
#undef mode_t
50+
/* #undef mode_t */
5051

5152
/* Define if you don't have dirent.h, but have ndir.h. */
52-
#undef NDIR
53+
/* #undef NDIR */
5354

5455
/* Define to `long' if <sys/types.h> doesn't define. */
55-
#undef off_t
56+
/* #undef off_t */
5657

5758
/* Define to `int' if <sys/types.h> doesn't define. */
58-
#undef pid_t
59+
/* #undef pid_t */
5960

6061
/* Define if the system does not provide POSIX.1 features except
6162
with this defined. */
62-
#undef _POSIX_1_SOURCE
63+
/* #undef _POSIX_1_SOURCE */
6364

6465
/* Define if you need to in order for stat and other things to work. */
65-
#undef _POSIX_SOURCE
66+
/* #undef _POSIX_SOURCE */
6667

6768
/* Define as the return type of signal handlers (int or void). */
6869
#define RETSIGTYPE void
6970

7071
/* Define to `unsigned' if <sys/types.h> doesn't define. */
71-
#undef size_t
72+
/* #undef size_t */
7273

7374
/* Define if you have the ANSI C header files. */
7475
#define STDC_HEADERS
7576

7677
/* Define if you don't have dirent.h, but have sys/dir.h. */
77-
#undef SYSDIR
78+
/* #undef SYSDIR */
7879

7980
/* Define if you don't have dirent.h, but have sys/ndir.h. */
80-
#undef SYSNDIR
81+
/* #undef SYSNDIR */
8182

8283
/* Define if you can safely include both <sys/time.h> and <time.h>. */
83-
#undef TIME_WITH_SYS_TIME
84+
/* #undef TIME_WITH_SYS_TIME */
8485

8586
/* Define if your <sys/time.h> declares struct tm. */
86-
#undef TM_IN_SYS_TIME
87+
/* #undef TM_IN_SYS_TIME */
8788

8889
/* Define to `int' if <sys/types.h> doesn't define. */
89-
#undef uid_t
90+
/* #undef uid_t */
9091

9192
/* Define if the closedir function returns void instead of int. */
92-
#undef VOID_CLOSEDIR
93+
/* #undef VOID_CLOSEDIR */
9394

9495
/* Define if your <unistd.h> contains bad prototypes for exec*()
9596
(as it does on SGI IRIX 4.x) */
96-
#undef BAD_EXEC_PROTOTYPES
97+
/* #undef BAD_EXEC_PROTOTYPES */
9798

98-
/* Define if your compiler botches static forward declarations
99-
(as it does on SCI ODT 3.0) */
99+
/* Define if your compiler botches static forward declarations */
100100
#ifdef __MWERKS__
101101
#define BAD_STATIC_FORWARD
102-
#else /* MPW and THINK */
103-
#undef BAD_STATIC_FORWARD
102+
#endif
103+
#ifdef __SC__
104+
#define BAD_STATIC_FORWARD
104105
#endif
105106

106107
/* Define to `long' if <time.h> doesn't define. */
107-
#undef clock_t
108+
/* #undef clock_t */
108109

109110
/* Define if getpgrp() must be called as getpgrp(0)
110111
and (consequently) setpgrp() as setpgrp(0, 0). */
111-
#undef GETPGRP_HAVE_ARG
112+
/* #undef GETPGRP_HAVE_ARG */
112113

113114
/* Define this if your time.h defines altzone */
114-
#undef HAVE_ALTZONE
115+
/* #undef HAVE_ALTZONE */
115116

116117
/* Define if your compiler supports function prototypes */
117118
#define HAVE_PROTOTYPES
@@ -121,21 +122,21 @@
121122
#define HAVE_STDARG_PROTOTYPES
122123

123124
/* Define if you have POSIX threads */
124-
#undef _POSIX_THREADS
125+
/* #undef _POSIX_THREADS */
125126

126127
/* Define to empty if the keyword does not work. */
127-
#undef signed
128+
/* #undef signed */
128129

129130
/* Define if you can safely include both <sys/select.h> and <sys/time.h>
130131
(which you can't on SCO ODT 3.0). */
131-
#undef SYS_SELECT_WITH_SYS_TIME
132+
/* #undef SYS_SELECT_WITH_SYS_TIME */
132133

133134
/* Define if you want to use SGI (IRIX 4) dynamic linking.
134135
This requires the "dl" library by Jack Jansen,
135136
ftp://ftp.cwi.nl/pub/dynload/dl-1.6.tar.Z.
136137
Don't bother on IRIX 5, it already has dynamic linking using SunOS
137138
style shared libraries */
138-
#undef WITH_SGI_DL
139+
/* #undef WITH_SGI_DL */
139140

140141
/* Define if you want to emulate SGI (IRIX 4) dynamic linking.
141142
This is rumoured to work on VAX (Ultrix), Sun3 (SunOS 3.4),
@@ -146,100 +147,100 @@
146147
ftp://ftp.cwi.nl/pub/dynload/dld-3.2.3.tar.Z.
147148
Don't bother on SunOS 4 or 5, they already have dynamic linking using
148149
shared libraries */
149-
#undef WITH_DL_DLD
150+
/* #undef WITH_DL_DLD */
150151

151152
/* Define if you want to compile in rudimentary thread support */
152-
#undef WITH_THREAD
153+
/* #undef WITH_THREAD */
153154

154155
/* Define if you want to use the GNU readline library */
155-
#undef WITH_READLINE
156+
/* #undef WITH_READLINE */
156157

157158
/* Define if you have chown. */
158-
#undef HAVE_CHOWN
159+
/* #undef HAVE_CHOWN */
159160

160161
/* Define if you have clock. */
161162
#define HAVE_CLOCK
162163

163164
/* Define if you have dlopen. */
164-
#undef HAVE_DLOPEN
165+
/* #undef HAVE_DLOPEN */
165166

166167
/* Define if you have ftime. */
167-
#undef HAVE_FTIME
168+
/* #undef HAVE_FTIME */
168169

169170
/* Define if you have getpeername. */
170-
#undef HAVE_GETPEERNAME
171+
/* #undef HAVE_GETPEERNAME */
171172

172173
/* Define if you have getpgrp. */
173-
#undef HAVE_GETPGRP
174+
/* #undef HAVE_GETPGRP */
174175

175176
/* Define if you have getpid. */
176-
#undef HAVE_GETPID
177+
/* #undef HAVE_GETPID */
177178

178179
/* Define if you have gettimeofday. */
179-
#undef HAVE_GETTIMEOFDAY
180+
/* #undef HAVE_GETTIMEOFDAY */
180181

181182
/* Define if you have getwd. */
182-
#undef HAVE_GETWD
183+
/* #undef HAVE_GETWD */
183184

184185
/* Define if you have link. */
185-
#undef HAVE_LINK
186+
/* #undef HAVE_LINK */
186187

187188
/* Define if you have lstat. */
188-
#undef HAVE_LSTAT
189+
/* #undef HAVE_LSTAT */
189190

190191
/* Define if you have nice. */
191-
#undef HAVE_NICE
192+
/* #undef HAVE_NICE */
192193

193194
/* Define if you have readlink. */
194-
#undef HAVE_READLINK
195+
/* #undef HAVE_READLINK */
195196

196197
/* Define if you have select. */
197-
#undef HAVE_SELECT
198+
/* #undef HAVE_SELECT */
198199

199200
/* Define if you have setgid. */
200-
#undef HAVE_SETGID
201+
/* #undef HAVE_SETGID */
201202

202203
/* Define if you have setpgid. */
203-
#undef HAVE_SETPGID
204+
/* #undef HAVE_SETPGID */
204205

205206
/* Define if you have setpgrp. */
206-
#undef HAVE_SETPGRP
207+
/* #undef HAVE_SETPGRP */
207208

208209
/* Define if you have setsid. */
209-
#undef HAVE_SETSID
210+
/* #undef HAVE_SETSID */
210211

211212
/* Define if you have setuid. */
212-
#undef HAVE_SETUID
213+
/* #undef HAVE_SETUID */
213214

214215
/* Define if you have setvbuf. */
215216
#define HAVE_SETVBUF
216217

217218
/* Define if you have siginterrupt. */
218-
#undef HAVE_SIGINTERRUPT
219+
/* #undef HAVE_SIGINTERRUPT */
219220

220221
/* Define if you have symlink. */
221-
#undef HAVE_SYMLINK
222+
/* #undef HAVE_SYMLINK */
222223

223224
/* Define if you have tcgetpgrp. */
224-
#undef HAVE_TCGETPGRP
225+
/* #undef HAVE_TCGETPGRP */
225226

226227
/* Define if you have tcsetpgrp. */
227-
#undef HAVE_TCSETPGRP
228+
/* #undef HAVE_TCSETPGRP */
228229

229230
/* Define if you have times. */
230-
#undef HAVE_TIMES
231+
/* #undef HAVE_TIMES */
231232

232233
/* Define if you have uname. */
233-
#undef HAVE_UNAME
234+
/* #undef HAVE_UNAME */
234235

235236
/* Define if you have waitpid. */
236-
#undef HAVE_WAITPID
237+
/* #undef HAVE_WAITPID */
237238

238239
/* Define if you have the <dlfcn.h> header file. */
239-
#undef HAVE_DLFCN_H
240+
/* #undef HAVE_DLFCN_H */
240241

241242
/* Define if you have the <fcntl.h> header file. */
242-
#undef HAVE_FCNTL_H
243+
/* #undef HAVE_FCNTL_H */
243244

244245
/* Define if you have the <signal.h> header file. */
245246
#define HAVE_SIGNAL_H
@@ -251,64 +252,64 @@
251252
#define HAVE_STDLIB_H
252253

253254
/* Define if you have the <sys/audioio.h> header file. */
254-
#undef HAVE_SYS_AUDIOIO_H
255+
/* #undef HAVE_SYS_AUDIOIO_H */
255256

256257
/* Define if you have the <sys/param.h> header file. */
257-
#undef HAVE_SYS_PARAM_H
258+
/* #undef HAVE_SYS_PARAM_H */
258259

259260
/* Define if you have the <sys/select.h> header file. */
260-
#undef HAVE_SYS_SELECT_H
261+
/* #undef HAVE_SYS_SELECT_H */
261262

262263
/* Define if you have the <sys/time.h> header file. */
263-
#undef HAVE_SYS_TIME_H
264+
/* #undef HAVE_SYS_TIME_H */
264265

265266
/* Define if you have the <sys/times.h> header file. */
266-
#undef HAVE_SYS_TIMES_H
267+
/* #undef HAVE_SYS_TIMES_H */
267268

268269
/* Define if you have the <sys/un.h> header file. */
269-
#undef HAVE_SYS_UN_H
270+
/* #undef HAVE_SYS_UN_H */
270271

271272
/* Define if you have the <sys/utsname.h> header file. */
272-
#undef HAVE_SYS_UTSNAME_H
273+
/* #undef HAVE_SYS_UTSNAME_H */
273274

274275
/* Define if you have the <thread.h> header file. */
275-
#undef HAVE_THREAD_H
276+
/* #undef HAVE_THREAD_H */
276277

277278
/* Define if you have the <unistd.h> header file. */
278-
#undef HAVE_UNISTD_H
279+
/* #undef HAVE_UNISTD_H */
279280

280281
/* Define if you have the <utime.h> header file. */
281-
#undef HAVE_UTIME_H
282+
/* #undef HAVE_UTIME_H */
282283

283284
/* Define if you have the dl library (-ldl). */
284-
#undef HAVE_LIBDL
285+
/* #undef HAVE_LIBDL */
285286

286287
/* Define if you have the inet library (-linet). */
287-
#undef HAVE_LIBINET
288+
/* #undef HAVE_LIBINET */
288289

289290
/* Define if you have the mpc library (-lmpc). */
290-
#undef HAVE_LIBMPC
291+
/* #undef HAVE_LIBMPC */
291292

292293
/* Define if you have the nsl library (-lnsl). */
293-
#undef HAVE_LIBNSL
294+
/* #undef HAVE_LIBNSL */
294295

295296
/* Define if you have the pthreads library (-lpthreads). */
296-
#undef HAVE_LIBPTHREADS
297+
/* #undef HAVE_LIBPTHREADS */
297298

298299
/* Define if you have the seq library (-lseq). */
299-
#undef HAVE_LIBSEQ
300+
/* #undef HAVE_LIBSEQ */
300301

301302
/* Define if you have the socket library (-lsocket). */
302-
#undef HAVE_LIBSOCKET
303+
/* #undef HAVE_LIBSOCKET */
303304

304305
/* Define if you have the sun library (-lsun). */
305-
#undef HAVE_LIBSUN
306+
/* #undef HAVE_LIBSUN */
306307

307308
/* Define if you have the termcap library (-ltermcap). */
308-
#undef HAVE_LIBTERMCAP
309+
/* #undef HAVE_LIBTERMCAP */
309310

310311
/* Define if you have the termlib library (-ltermlib). */
311-
#undef HAVE_LIBTERMLIB
312+
/* #undef HAVE_LIBTERMLIB */
312313

313314
/* Define if you have the thread library (-lthread). */
314-
#undef HAVE_LIBTHREAD
315+
/* #undef HAVE_LIBTHREAD */

0 commit comments

Comments
 (0)