diff options
| author | Andrew Innes | 2000-08-22 23:55:09 +0000 |
|---|---|---|
| committer | Andrew Innes | 2000-08-22 23:55:09 +0000 |
| commit | bfba227f39681d75668ae91b446fe36ab0401500 (patch) | |
| tree | 5e3487acf7f0d597ecdffd091ff0697b40fd7548 /src | |
| parent | 546a4f000db850ef31bbc31f804568e9802d3aa8 (diff) | |
| download | emacs-bfba227f39681d75668ae91b446fe36ab0401500.tar.gz emacs-bfba227f39681d75668ae91b446fe36ab0401500.zip | |
(malloc, free, realloc, calloc): Rename if
USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
cannot override the CRT malloc.
(_WINSOCK_H): Define to prevent normal winsock
definitions from being used.
(sys_nerr): Provide default definition.
(strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
name with _ prepended.
(NSIG): Define if not known.
(get_emacs_configuration): Provide extern declaration.
(get_emacs_configuration_options): Provide extern declaration.
(EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
Diffstat (limited to 'src')
| -rw-r--r-- | src/s/ms-w32.h | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/src/s/ms-w32.h b/src/s/ms-w32.h index c167e4163c4..a109dc9d91d 100644 --- a/src/s/ms-w32.h +++ b/src/s/ms-w32.h | |||
| @@ -370,6 +370,12 @@ Boston, MA 02111-1307, USA. */ | |||
| 370 | #define utimbuf _utimbuf | 370 | #define utimbuf _utimbuf |
| 371 | #define index strchr | 371 | #define index strchr |
| 372 | #define rindex strrchr | 372 | #define rindex strrchr |
| 373 | #define strdup _strdup | ||
| 374 | #define strupr _strupr | ||
| 375 | #define strnicmp _strnicmp | ||
| 376 | #define stricmp _stricmp | ||
| 377 | #define tzset _tzset | ||
| 378 | #define tzname _tzname | ||
| 373 | 379 | ||
| 374 | #ifdef HAVE_NTGUI | 380 | #ifdef HAVE_NTGUI |
| 375 | #define abort w32_abort | 381 | #define abort w32_abort |
| @@ -398,6 +404,10 @@ Boston, MA 02111-1307, USA. */ | |||
| 398 | #define SIGALRM 14 /* Alarm */ | 404 | #define SIGALRM 14 /* Alarm */ |
| 399 | #define SIGCHLD 18 /* Death of child */ | 405 | #define SIGCHLD 18 /* Death of child */ |
| 400 | 406 | ||
| 407 | #ifndef NSIG | ||
| 408 | #define NSIG 23 | ||
| 409 | #endif | ||
| 410 | |||
| 401 | /* For integration with MSDOS support. */ | 411 | /* For integration with MSDOS support. */ |
| 402 | #define getdisk() (_getdrive () - 1) | 412 | #define getdisk() (_getdrive () - 1) |
| 403 | #ifdef emacs | 413 | #ifdef emacs |
| @@ -406,15 +416,24 @@ Boston, MA 02111-1307, USA. */ | |||
| 406 | #define getdefdir(_drv, _buf) _getdcwd (_drv, _buf, MAXPATHLEN) | 416 | #define getdefdir(_drv, _buf) _getdcwd (_drv, _buf, MAXPATHLEN) |
| 407 | #endif | 417 | #endif |
| 408 | 418 | ||
| 419 | extern char *get_emacs_configuration (void); | ||
| 420 | extern char *get_emacs_configuration_options (void); | ||
| 409 | #define EMACS_CONFIGURATION get_emacs_configuration () | 421 | #define EMACS_CONFIGURATION get_emacs_configuration () |
| 410 | #define EMACS_CONFIG_OPTIONS "NT" /* Not very meaningful yet. */ | 422 | #define EMACS_CONFIG_OPTIONS get_emacs_configuration_options () |
| 411 | 423 | ||
| 412 | /* Define this so that winsock.h definitions don't get included with | 424 | /* Define this so that winsock.h definitions don't get included with |
| 413 | windows.h. For this to have proper effect, config.h must always be | 425 | windows.h. For this to have proper effect, config.h must always be |
| 414 | included before windows.h. */ | 426 | included before windows.h. */ |
| 415 | #define _WINSOCKAPI_ 1 | 427 | #define _WINSOCKAPI_ 1 |
| 428 | #define _WINSOCK_H | ||
| 416 | 429 | ||
| 417 | /* Defines size_t and alloca (). */ | 430 | /* Defines size_t and alloca (). */ |
| 431 | #ifdef USE_CRT_DLL | ||
| 432 | #define malloc e_malloc | ||
| 433 | #define free e_free | ||
| 434 | #define realloc e_realloc | ||
| 435 | #define calloc e_calloc | ||
| 436 | #endif | ||
| 418 | #include <malloc.h> | 437 | #include <malloc.h> |
| 419 | 438 | ||
| 420 | #include <sys/stat.h> | 439 | #include <sys/stat.h> |
| @@ -431,6 +450,9 @@ Boston, MA 02111-1307, USA. */ | |||
| 431 | 450 | ||
| 432 | /* For proper declaration of environ. */ | 451 | /* For proper declaration of environ. */ |
| 433 | #include <stdlib.h> | 452 | #include <stdlib.h> |
| 453 | #ifndef sys_nerr | ||
| 454 | #define sys_nerr _sys_nerr | ||
| 455 | #endif | ||
| 434 | #include <string.h> | 456 | #include <string.h> |
| 435 | 457 | ||
| 436 | /* Emacs takes care of ensuring that these are defined. */ | 458 | /* Emacs takes care of ensuring that these are defined. */ |