aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilipp Stephani2017-05-20 16:37:42 +0200
committerPhilipp Stephani2017-05-21 21:49:17 +0200
commitcf68bb4aed0c3c65f1b71cb13c506f4f706744cc (patch)
treeace3f6e9cb12492782b9010f393b3b09749cac6c
parent84b28ec759ed3d294c2f49353942ae76e0c75532 (diff)
downloademacs-cf68bb4aed0c3c65f1b71cb13c506f4f706744cc.tar.gz
emacs-cf68bb4aed0c3c65f1b71cb13c506f4f706744cc.zip
Declare Nextstep unexec functions in lisp.h
This removes compiler warnings about missing prototypes on macOS.
-rw-r--r--src/emacs.c4
-rw-r--r--src/lisp.h8
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
137bool might_dump; 137bool might_dump;
138#endif 138#endif
139 139
140#if defined DARWIN_OS && !defined CANNOT_DUMP
141extern void unexec_init_emacs_zone (void);
142#endif
143
144/* If true, Emacs should not attempt to use a window-specific code, 140/* If true, Emacs should not attempt to use a window-specific code,
145 but instead should use the virtual terminal under which it was started. */ 141 but instead should use the virtual terminal under which it was started. */
146bool inhibit_window_system; 142bool 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);
3887Lisp_Object backtrace_top_function (void); 3887Lisp_Object backtrace_top_function (void);
3888extern bool let_shadows_buffer_binding_p (struct Lisp_Symbol *symbol); 3888extern bool let_shadows_buffer_binding_p (struct Lisp_Symbol *symbol);
3889 3889
3890/* Defined in unexmacosx.c. */
3891#if defined DARWIN_OS && !defined CANNOT_DUMP
3892extern void unexec_init_emacs_zone (void);
3893extern void *unexec_malloc (size_t);
3894extern void *unexec_realloc (void *, size_t);
3895extern void unexec_free (void *);
3896#endif
3897
3890#include "emacs-module.h" 3898#include "emacs-module.h"
3891 3899
3892/* Function prototype for the module Lisp functions. */ 3900/* Function prototype for the module Lisp functions. */