Commit f892cf9c authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

Include w32.h.

(valid_lisp_object_p) [WINDOWSNT]: Call w32_valid_pointer_p to do the job.
parent 0c5c0e3d
...@@ -80,6 +80,7 @@ extern POINTER_TYPE *sbrk (); ...@@ -80,6 +80,7 @@ extern POINTER_TYPE *sbrk ();
#ifdef WINDOWSNT #ifdef WINDOWSNT
#include <fcntl.h> #include <fcntl.h>
#include "w32.h"
#endif #endif
#ifdef DOUG_LEA_MALLOC #ifdef DOUG_LEA_MALLOC
...@@ -4615,6 +4616,9 @@ int ...@@ -4615,6 +4616,9 @@ int
valid_pointer_p (p) valid_pointer_p (p)
void *p; void *p;
{ {
#ifdef WINDOWSNT
return w32_valid_pointer_p (p, 16);
#else
int fd; int fd;
/* Obviously, we cannot just access it (we would SEGV trying), so we /* Obviously, we cannot just access it (we would SEGV trying), so we
...@@ -4631,6 +4635,7 @@ valid_pointer_p (p) ...@@ -4631,6 +4635,7 @@ valid_pointer_p (p)
} }
return -1; return -1;
#endif
} }
/* Return 1 if OBJ is a valid lisp object. /* Return 1 if OBJ is a valid lisp object.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment