diff options
author | Philipp Stephani <phst@google.com> | 2017-05-20 16:37:42 +0200 |
---|---|---|
committer | Philipp Stephani <phst@google.com> | 2017-05-21 21:49:17 +0200 |
commit | cf68bb4aed0c3c65f1b71cb13c506f4f706744cc (patch) | |
tree | ace3f6e9cb12492782b9010f393b3b09749cac6c | |
parent | 84b28ec759ed3d294c2f49353942ae76e0c75532 (diff) | |
download | emacs-cf68bb4aed0c3c65f1b71cb13c506f4f706744cc.tar.gz emacs-cf68bb4aed0c3c65f1b71cb13c506f4f706744cc.tar.bz2 emacs-cf68bb4aed0c3c65f1b71cb13c506f4f706744cc.zip |
Declare Nextstep unexec functions in lisp.h
This removes compiler warnings about missing prototypes on macOS.
-rw-r--r-- | src/emacs.c | 4 | ||||
-rw-r--r-- | src/lisp.h | 8 |
2 files changed, 8 insertions, 4 deletions
diff --git a/src/emacs.c b/src/emacs.c index 3aa914f22fa..4477f5bc017 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -137,10 +137,6 @@ static bool might_dump; #endif -#if defined DARWIN_OS && !defined CANNOT_DUMP -extern void unexec_init_emacs_zone (void); -#endif - /* If true, Emacs should not attempt to use a window-specific code, but instead should use the virtual terminal under which it was started. */ bool inhibit_window_system; diff --git a/src/lisp.h b/src/lisp.h index ec8a8b1c098..f423a66d5a8 100644 --- a/src/lisp.h +++ b/src/lisp.h @@ -3887,6 +3887,14 @@ extern void get_backtrace (Lisp_Object array); Lisp_Object backtrace_top_function (void); extern bool let_shadows_buffer_binding_p (struct Lisp_Symbol *symbol); +/* Defined in unexmacosx.c. */ +#if defined DARWIN_OS && !defined CANNOT_DUMP +extern void unexec_init_emacs_zone (void); +extern void *unexec_malloc (size_t); +extern void *unexec_realloc (void *, size_t); +extern void unexec_free (void *); +#endif + #include "emacs-module.h" /* Function prototype for the module Lisp functions. */ |