Mercurial > emacs
changeset 72288:94e8cc9b752d
Include w32.h.
(valid_lisp_object_p) [WINDOWSNT]: Call w32_valid_pointer_p to do the job.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Sat, 05 Aug 2006 13:01:50 +0000 |
parents | 875a47d81ba5 |
children | 40a24db2adc4 |
files | src/alloc.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/alloc.c Sat Aug 05 13:01:25 2006 +0000 +++ b/src/alloc.c Sat Aug 05 13:01:50 2006 +0000 @@ -80,6 +80,7 @@ #ifdef WINDOWSNT #include <fcntl.h> +#include "w32.h" #endif #ifdef DOUG_LEA_MALLOC @@ -4615,6 +4616,9 @@ valid_pointer_p (p) void *p; { +#ifdef WINDOWSNT + return w32_valid_pointer_p (p, 16); +#else int fd; /* Obviously, we cannot just access it (we would SEGV trying), so we @@ -4631,6 +4635,7 @@ } return -1; +#endif } /* Return 1 if OBJ is a valid lisp object.