comparison nt/config.h @ 442:abe6d1db359e r21-2-36

Import from CVS: tag r21-2-36
author cvs
date Mon, 13 Aug 2007 11:35:02 +0200
parents 8de8e3f6228a
children 576fb035e263
comparison
equal deleted inserted replaced
441:72a7cfa4a488 442:abe6d1db359e
19 Boston, MA 02111-1307, USA. */ 19 Boston, MA 02111-1307, USA. */
20 20
21 /* Synched up with: FSF 19.30 (more or less). */ 21 /* Synched up with: FSF 19.30 (more or less). */
22 22
23 /* No code in XEmacs #includes config.h twice, but some of the code 23 /* No code in XEmacs #includes config.h twice, but some of the code
24 intended to work with other packages as well (like gmalloc.c) 24 intended to work with other packages as well (like gmalloc.c)
25 think they can include it as many times as they like. */ 25 think they can include it as many times as they like. */
26 #ifndef _SRC_CONFIG_H_ 26 #ifndef _SRC_CONFIG_H_
27 #define _SRC_CONFIG_H_ 27 #define _SRC_CONFIG_H_
28 28
29 #define NTHEAP_PROBE_BASE 1 29 #define NTHEAP_PROBE_BASE 1
152 #undef HAVE_SYS_TIMEB_H 152 #undef HAVE_SYS_TIMEB_H
153 #undef HAVE_UNISTD_H 153 #undef HAVE_UNISTD_H
154 #undef HAVE_UTIME_H 154 #undef HAVE_UTIME_H
155 #undef HAVE_SYS_WAIT_H 155 #undef HAVE_SYS_WAIT_H
156 #undef HAVE_LIBGEN_H 156 #undef HAVE_LIBGEN_H
157 #undef HAVE_LINUX_VERSION_H
158 #undef WORDS_BIGENDIAN 157 #undef WORDS_BIGENDIAN
159 #undef TIME_WITH_SYS_TIME 158 #undef TIME_WITH_SYS_TIME
160 159
161 #define HAVE_SYS_TIME_H 160 #undef HAVE_SYS_TIME_H
162 #define HAVE_LOCALE_H 161 #define HAVE_LOCALE_H
163 #ifdef HAVE_X_WINDOWS 162 #ifdef HAVE_X_WINDOWS
164 #define HAVE_X11_LOCALE_H 163 #define HAVE_X11_LOCALE_H
165 #endif 164 #endif
166 #define STDC_HEADERS 165 #define STDC_HEADERS
229 #undef HAVE_FMOD 228 #undef HAVE_FMOD
230 #undef HAVE_FPATHCONF 229 #undef HAVE_FPATHCONF
231 #undef HAVE_FREXP 230 #undef HAVE_FREXP
232 #undef HAVE_FTIME 231 #undef HAVE_FTIME
233 #undef HAVE_GETHOSTNAME 232 #undef HAVE_GETHOSTNAME
234 #undef HAVE_GETPAGESIZE 233
234 #define HAVE_GETPAGESIZE
235 #define getpagesize() 4096
236
235 #define HAVE_GETTIMEOFDAY 237 #define HAVE_GETTIMEOFDAY
236 #define HAVE_GETWD 238 #define HAVE_GETWD
237 #undef HAVE_LOGB 239 #undef HAVE_LOGB
238 #undef HAVE_LRAND48 240 #undef HAVE_LRAND48
239 #undef HAVE_MATHERR 241 #undef HAVE_MATHERR
253 #undef HAVE_SETSID 255 #undef HAVE_SETSID
254 #undef HAVE_SIGBLOCK 256 #undef HAVE_SIGBLOCK
255 #undef HAVE_SIGHOLD 257 #undef HAVE_SIGHOLD
256 #undef HAVE_SIGPROCMASK 258 #undef HAVE_SIGPROCMASK
257 #undef HAVE_SIGSETJMP 259 #undef HAVE_SIGSETJMP
258 #undef HAVE_STRCASECMP
259 #define HAVE_STRERROR 260 #define HAVE_STRERROR
260 #undef HAVE_TZSET 261 #undef HAVE_TZSET
261 #undef HAVE_UTIMES 262 #undef HAVE_UTIMES
262 #undef HAVE_WAITPID 263 #undef HAVE_WAITPID
263 264
285 #undef HAVE_DBM 286 #undef HAVE_DBM
286 287
287 /* Define HAVE_BERKELEY_DB if you want to use the BerkDB libraries */ 288 /* Define HAVE_BERKELEY_DB if you want to use the BerkDB libraries */
288 #undef HAVE_BERKELEY_DB 289 #undef HAVE_BERKELEY_DB
289 /* Full #include file path for Berkeley DB's db.h */ 290 /* Full #include file path for Berkeley DB's db.h */
290 #undef DB_H_PATH 291 #undef DB_H_FILE
291 292
292 #if defined (HAVE_DBM) || defined (HAVE_BERKELEY_DB) 293 #if defined (HAVE_DBM) || defined (HAVE_BERKELEY_DB)
293 # define HAVE_DATABASE 294 # define HAVE_DATABASE
294 #endif 295 #endif
295 296
296 /* Define HAVE_NCURSES if -lncurses is present. */ 297 /* Define HAVE_NCURSES if -lncurses is present. */
297 #undef HAVE_NCURSES 298 #undef HAVE_NCURSES
298 /* Full #include file paths for ncurses' curses.h and term.h. */ 299 /* Full #include file paths for ncurses' curses.h and term.h. */
299 #undef CURSES_H_PATH 300 #undef CURSES_H_FILE
300 #undef TERM_H_PATH 301 #undef TERM_H_FILE
301 302
302 #define LOWTAGS 303 #define LOWTAGS
303 304
304 #ifdef DEBUG_XEMACS 305 #ifdef DEBUG_XEMACS
305 306
341 #define bufpos_checking_assert(assertion) assert (assertion) 342 #define bufpos_checking_assert(assertion) assert (assertion)
342 #else 343 #else
343 #define bufpos_checking_assert(assertion) 344 #define bufpos_checking_assert(assertion)
344 #endif 345 #endif
345 346
347 #ifdef ERROR_CHECK_GC
348 #define gc_checking_assert(assertion) assert (assertion)
349 #else
350 #define gc_checking_assert(assertion)
351 #endif
346 352
347 /* Define MEMORY_USAGE_STATS if you want extra code compiled in to 353 /* Define MEMORY_USAGE_STATS if you want extra code compiled in to
348 determine where XEmacs's memory is going. */ 354 determine where XEmacs's memory is going. */
349 #undef MEMORY_USAGE_STATS 355 #undef MEMORY_USAGE_STATS
350 356
417 423
418 /* Undocumented debugging option: Don't automatically rebuild the DOC 424 /* Undocumented debugging option: Don't automatically rebuild the DOC
419 file. This saves a lot of time when you're repeatedly 425 file. This saves a lot of time when you're repeatedly
420 compiling-running-crashing. */ 426 compiling-running-crashing. */
421 #undef NO_DOC_FILE 427 #undef NO_DOC_FILE
422
423 #define CONST const
424 428
425 /* If not defined, use unions instead of ints. A few systems (DEC Alpha) 429 /* If not defined, use unions instead of ints. A few systems (DEC Alpha)
426 seem to require this, probably because something with the int 430 seem to require this, probably because something with the int
427 definitions isn't right with 64-bit systems. 431 definitions isn't right with 64-bit systems.
428 432
482 486
483 /* Define SUNPRO to compiled in support for Sun Sparcworks. */ 487 /* Define SUNPRO to compiled in support for Sun Sparcworks. */
484 #undef SUNPRO 488 #undef SUNPRO
485 489
486 /* Sun SparcStations, SGI machines, and HP9000s700s have support for playing 490 /* Sun SparcStations, SGI machines, and HP9000s700s have support for playing
487 different sound files as beeps. If you are on a SparcStation but do not 491 different sound files as beeps. If you are on a SparcStation but do not
488 have the sound option installed for some reason, then undefine 492 have the sound option installed for some reason, then undefine
489 HAVE_NATIVE_SOUND. (It's usually found in /usr/demo/SOUND/ on SunOS 4 493 HAVE_NATIVE_SOUND. (It's usually found in /usr/demo/SOUND/ on SunOS 4
490 and Solaris systems; on Solaris, you may need to install the "SUNWaudmo" 494 and Solaris systems; on Solaris, you may need to install the "SUNWaudmo"
491 package.) 495 package.)
492 */ 496 */
493 /* #undef HAVE_NATIVE_SOUND */ 497 /* #undef HAVE_NATIVE_SOUND */
494 498
495 /* If you wish to compile with support for the Network Audio System 499 /* If you wish to compile with support for the Network Audio System
496 system define HAVE_NAS_SOUND. 500 system define HAVE_NAS_SOUND.
497 NAS_NO_ERROR_JUMP means that the NAS libraries don't inlcude some 501 NAS_NO_ERROR_JUMP means that the NAS libraries don't include some
498 error handling changes. 502 error handling changes.
499 */ 503 */
500 #undef HAVE_NAS_SOUND 504 #undef HAVE_NAS_SOUND
501 #undef NAS_NO_ERROR_JUMP 505 #undef NAS_NO_ERROR_JUMP
502 506
532 /* If you are using SunOS 4.1.1 and X11r5, then you need this patch. 536 /* If you are using SunOS 4.1.1 and X11r5, then you need this patch.
533 There is a stupid bug in the SunOS libc.a: two functions which X11r5 537 There is a stupid bug in the SunOS libc.a: two functions which X11r5
534 uses, mbstowcs() and wcstombs(), are unusable when programs are 538 uses, mbstowcs() and wcstombs(), are unusable when programs are
535 statically linked (as XEmacs must be) because the static version of 539 statically linked (as XEmacs must be) because the static version of
536 libc.a contains the *dynamic* versions of these functions. These 540 libc.a contains the *dynamic* versions of these functions. These
537 functions don't seem to be called when XEmacs is running, so it's 541 functions don't seem to be called when XEmacs is running, so it's
538 enough to define stubs for them. 542 enough to define stubs for them.
539 543
540 This appears to be fixed in SunOS 4.1.2. 544 This appears to be fixed in SunOS 4.1.2.
541 545
542 Also, SunOS 4.1.1 contains buggy versions of strcmp and strcpy that 546 Also, SunOS 4.1.1 contains buggy versions of strcmp and strcpy that
555 /* System calls that are encapsulated */ 559 /* System calls that are encapsulated */
556 #define ENCAPSULATE_RENAME 560 #define ENCAPSULATE_RENAME
557 #define ENCAPSULATE_OPEN 561 #define ENCAPSULATE_OPEN
558 #define ENCAPSULATE_FOPEN 562 #define ENCAPSULATE_FOPEN
559 #define ENCAPSULATE_MKDIR 563 #define ENCAPSULATE_MKDIR
560 564 #define ENCAPSULATE_STAT
561 #if defined (WIN32) && defined (USE_IME) 565 #define ENCAPSULATE_FSTAT
562 #define HAVE_FEP
563 #endif
564 566
565 #if defined (HAVE_SOCKS) && !defined (DO_NOT_SOCKSIFY) 567 #if defined (HAVE_SOCKS) && !defined (DO_NOT_SOCKSIFY)
566 #define accept Raccept 568 #define accept Raccept
567 #define bind Rbind 569 #define bind Rbind
568 #define connect Rconnect 570 #define connect Rconnect
579 #define LONG_LONG_BITS (SIZEOF_LONG_LONG * BITS_PER_CHAR) 581 #define LONG_LONG_BITS (SIZEOF_LONG_LONG * BITS_PER_CHAR)
580 #define VOID_P_BITS (SIZEOF_VOID_P * BITS_PER_CHAR) 582 #define VOID_P_BITS (SIZEOF_VOID_P * BITS_PER_CHAR)
581 583
582 /* MSVC version >= 2.x without /Za supports __inline */ 584 /* MSVC version >= 2.x without /Za supports __inline */
583 #if (_MSC_VER < 900) || defined(__STDC__) 585 #if (_MSC_VER < 900) || defined(__STDC__)
584 # define INLINE static 586 # define inline
585 #else 587 #else
586 # define INLINE __inline 588 # define inline __inline
587 #endif 589 #endif
590
591 #define INLINE_HEADER inline static
588 592
589 /* MSVC warnings no-no crap. When adding one to this section, 593 /* MSVC warnings no-no crap. When adding one to this section,
590 1. Think twice 594 1. Think twice
591 2. Insert textual description of the warning. 595 2. Insert textual description of the warning.
592 3. Think twice. Undo still works */ 596 3. Think twice. Undo still works */
594 598
595 /* 'expression' : signed/unsigned mismatch */ 599 /* 'expression' : signed/unsigned mismatch */
596 #pragma warning ( disable : 4018 ) 600 #pragma warning ( disable : 4018 )
597 601
598 #endif /* compiler understands #pragma warning*/ 602 #endif /* compiler understands #pragma warning*/
603
604 #ifndef NOT_C_CODE /* Actually means C or C++ */
605 # if defined (__cplusplus)
606 /* Avoid C++ keywords used as ordinary C identifiers */
607 # define class c_class
608 # define new c_new
609 # define this c_this
610 # define catch c_catch
611 # define not c_not
612
613 # define EXTERN_C extern "C"
614 # else /* C code */
615 # define EXTERN_C extern
616 # endif
617 #endif /* C or C++ */
599 618
600 #define enum_field(enumeration_type) unsigned int 619 #define enum_field(enumeration_type) unsigned int
601 620
602 /* We want to avoid saving the signal mask if possible, because 621 /* We want to avoid saving the signal mask if possible, because
603 that necessitates a system call. */ 622 that necessitates a system call. */