Remove unnecessary eval-when-compile.
[bpt/emacs.git] / admin / CPP-DEFINES
CommitLineData
aa5fea59
SM
1Here are some of the cpp macros used, together with some short explanation
2of their use. Feel free to add more macros and more categories.
3
4** Distinguishing OSes **
5
9536288f 6MAC_OS Compiling for the `mac' window-system.
04338634 7MAC_OS8 Compiling for Mac OS Classic (v8 or v9). No longer supported, all code using it can be removed.
9536288f 8MAC_OSX Compiling for Mac OS X. Not bare Darwin.
aa5fea59 9CYGWIN Compiling the Cygwin port.
077e3aa8
EZ
10__CYGWIN__ Ditto
11MSDOS Compiling the MS-DOS port.
12__MSDOS__ Ditto.
13__DJGPP__ Major version number of the DJGPP library for the DOS port.
14__DJGPP_MINOR__ Minor version number of the DJGPP library.
15__GO32__ Compiling the DOS port with DJGPP v1.x (obsolete).
16DOS_NT Compiling for either the MS-DOS or native MS-Windows port.
17WINDOWSNT Compiling the native MS-Windows (W32) port.
18__MINGW32__ Compiling the W32 port with the MinGW port of GCC.
19_MSC_VER Compiling the W32 port with the Microsoft C compiler.
b7bfcc8a 20IRIX6_5 Compiling on Irix-6.5
aa5fea59
SM
21
22** Distinguishing GUIs **
23
077e3aa8 24HAVE_NTGUI Use the native W32 GUI for windows, frames, menus&scrollbars.
aa5fea59
SM
25HAVE_CARBON Compile support for the Carbon GUI. Requires MAC_OS?
26HAVE_X11 Compile support for the X11 GUI.
077e3aa8 27HAVE_X_WINDOWS Compile support for X Window system
aa5fea59
SM
28X11 ?? Makefile.in suggests it's equivalent to HAVE_X11
29USE_LUCID Use the Lucid toolkit for menus&scrollbars. Requires HAVE_X11.
30USE_MOTIF Use the Motif toolkit for menus&scrollbars. Requires HAVE_X11.
31USE_GTK Use the Gtk toolkit for menus&scrollbars. Requires HAVE_X11.
32
077e3aa8
EZ
33** Frame types **
34
35FRAME_TERMCAP_P A tty (character terminal) frame.
36FRAME_X_P A frame on X Window system.
37FRAME_MSDOS_P An MS-DOS frame (used only by the DOS port).
38FRAME_MAC_P A Mac frame.
39FRAME_W32_P A frame using native MS-Windows GUI.
40FRAME_WINDOW_P A GUI frame (like X, w32, etc.)
41
42** Compile-time options **
43REL_ALLOC Compile in the relocatable memory allocator ralloc.c.
44SYSTEM_MALLOC Use the system library's malloc.
45
4624371d 46** Replace, the definition is trivial: SWITCH_ENUM_CAST
d35e1cd7 47
f3041af1 48** Temporarily put defines from removed files here, check if these macros need to be documented or removed because they are not used anymore. **
d35e1cd7 49
f3041af1 50ADDR_CORRECT
f3041af1
DN
51ADJUST_TEXTBASE
52ADJUST_TEXT_SCNHDR_SIZE
53A_TEXT_OFFSET
54A_TEXT_SEEK
55BAUD_CONVERT
56BROKEN_FIONREAD
f3041af1 57BROKEN_SIGIO
f3041af1
DN
58BROKEN_TIOCGETC
59BROKEN_TIOCGWINSZ
d35e1cd7 60BSD4_2
f3041af1
DN
61BSD4_3
62BSD4_4
d35e1cd7
DN
63BSD_PGRPS
64BSD_SYSTEM
65BSTRING
66CANNOT_DUMP
67CLASH_DETECTION
68COFF
f3041af1 69COFF_BSD_SYMBOLS
d35e1cd7 70CRT0_DUMMIES
f3041af1
DN
71C_DEBUG_SWITCH
72C_OPTIMIZE_SWITCH
f3041af1
DN
73C_SWITCH_MACHINE
74C_SWITCH_SYSTEM
75DATA_END
76DATA_SECTION_ALIGNMENT
77DATA_SEG_BITS
78DATA_START
79DEBUG
80DECLARE_GETPWUID_WITH_UID_T
81DEFAULT_ENTRY_ADDRESS
f3041af1
DN
82DOT_GLOBAL_START
83DUMMIES
f3041af1 84ELF
f3041af1 85EXEC_PAGESIZE
d35e1cd7
DN
86EXPLICIT_SIGN_EXTEND
87FIRST_PTY_LETTER
f3041af1 88FSCALE
f3041af1
DN
89GC_MARK_STACK
90GC_SETJMP_WORKS
91GETPGRP_NO_ARG
92GNU_MALLOC
93HAVE_ALLOCA
f3041af1
DN
94HAVE_CLOSEDIR
95HAVE_CONFIG_H
96HAVE_CRTN
97HAVE_GETTIMEOFDAY
98HAVE_INET_SOCKETS
99HAVE_LIBDNET
100HAVE_LIBINTL
101HAVE_LIBRESOLV
d35e1cd7 102HAVE_PTYS
f3041af1 103HAVE_SELECT
d35e1cd7
DN
104HAVE_SOCKETS
105HAVE_SYSVIPC
f3041af1
DN
106HAVE_SYSV_SIGPAUSE
107HAVE_SYS_WAIT_H
108HAVE_TCATTR
d35e1cd7 109HAVE_TERMIO
f3041af1
DN
110HAVE_TERMIOS
111HAVE_TEXT_START
d35e1cd7 112HAVE_UNION_WAIT
f3041af1
DN
113HAVE_UNISTD_H
114HAVE_UNIX_DOMAIN
115HAVE_UTIMES
116HAVE_WAIT_HEADER
117HAVE_X11R6
f3041af1
DN
118HAVE_XSCREENNUMBEROFSCREEN
119HAVE_X_WINDOWS
f3041af1 120INHIBIT_X11R6_XIM
f3041af1 121INTEL386
d35e1cd7 122INTERRUPT_INPUT
f3041af1
DN
123IRIS
124IRIS_4D
d35e1cd7
DN
125KERNEL_FILE
126LDAV_SYMBOL
f3041af1
DN
127LD_SWITCH_MACHINE
128LD_SWITCH_SYSTEM
129LD_SWITCH_SYSTEM_TEMACS
d35e1cd7 130LIBS_DEBUG
f3041af1
DN
131LIBS_MACHINE
132LIBS_SYSTEM
133LIBS_TERMCAP
f3041af1
DN
134LIBX11_SYSTEM
135LIBXMU
136LIB_GCC
137LIB_MOTIF
138LIB_STANDARD
139LIB_X11_LIB
140LINKER
d35e1cd7
DN
141LOAD_AVE_CVT
142LOAD_AVE_TYPE
143MAIL_USE_FLOCK
f3041af1
DN
144MKDIR_PROTOTYPE
145MOTIF
f3041af1 146NARROWPROTO
f3041af1 147NEED_ERRNO
f3041af1
DN
148NEED_PTEM_H
149NEED_SIOCTL
f3041af1 150NLIST_STRUCT
d35e1cd7
DN
151NOMULTIPLEJOBS
152NONSYSTEM_DIR_LIBRARY
f3041af1 153NOT_C_CODE
d35e1cd7
DN
154NO_ARG_ARRAY
155NO_REMAP
f3041af1 156NO_SIOCTL_H
f40f5dc3 157NO_SOCK_SIGIO
f3041af1 158NO_TERMIO
d35e1cd7 159NO_UNION_TYPE
f3041af1
DN
160NSIG
161NSIG_MINIMUM
162OBJECTS_MACHINE
f3041af1 163ORDINARY_LINK
f3041af1 164O_NDELAY
f3041af1
DN
165PENDING_OUTPUT_COUNT
166PERROR
167PNTR_COMPARISON_TYPE
168POSIX_SIGNALS
169PREFER_VSUSP
170PTY_ITERATION
d35e1cd7 171PTY_NAME_SPRINTF
f3041af1 172PTY_OPEN
d35e1cd7 173PTY_TTY_NAME_SPRINTF
f3041af1
DN
174PURESIZE
175READ
176REL_ALLOC
f3041af1
DN
177RUN_TIME_REMAP
178SECTION_ALIGNMENT
179SEEK
180SEGMENT_MASK
181SEGSIZ
182SETUP_SLAVE_PTY
f3041af1
DN
183SIGMASKTYPE
184SIGNALS_VIA_CHARACTERS
185SIGN_EXTEND_CHAR
186SIGTYPE
f3041af1 187START_FILES
f3041af1 188SVR4
f3041af1 189SYSTEM_MALLOC
d35e1cd7 190SYSTEM_TYPE
f3041af1
DN
191SYSV_PTYS
192SYSV_SYSTEM_DIR
193S_IEXEC
194S_IFDIR
195S_IFLNK
196S_IFMT
197S_IREAD
198S_IWRITE
f3041af1
DN
199TERMCAP
200TERMINFO
201TEXT_END
202TEXT_START
f3041af1 203THIS_IS_MAKEFILE
f3041af1 204ULIMIT_BREAK_VALUE
f3041af1 205UNEXEC
f3041af1 206USE_MMAP_FOR_BUFFERS
f3041af1
DN
207USG
208USG5
209USG5_3
210USG5_4
211USG_JOBCTRL
212USG_SHARED_LIBRARIES
d35e1cd7
DN
213VIRT_ADDR_VARIES
214WORDS_BIG_ENDIAN
215WORD_MACHINE
f3041af1
DN
216XINT
217XSET
218XUINT
219X_DEFAULT_FONT
220_ABIN32
f3041af1
DN
221_MIPS_SZLONG
222_POSIX_SOURCE
f3041af1
DN
223_longjmp
224_setjmp
f3041af1 225alloca
f3041af1
DN
226data_start
227drem
f3041af1
DN
228emacs
229entry
230etext
231fatal
232fchmod
233getpgrp
f3041af1
DN
234hp9000s800
235index
f3041af1
DN
236jmp_buf
237longjmp
d35e1cd7 238m68000
f3041af1 239m68k
f3041af1
DN
240magic
241mc68000
242mips
f3041af1 243sel
d35e1cd7 244subprocesses
f3041af1 245sun
f3041af1 246text_start
d35e1cd7 247
aa5fea59 248# arch-tag: bc80061a-1168-4911-9766-46aaf2640250