]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix another CANNOT_DUMP problem
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 21 Nov 2016 16:42:12 +0000 (08:42 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 21 Nov 2016 16:42:49 +0000 (08:42 -0800)
Reported by Robert Pluim in:
http://lists.gnu.org/archive/html/emacs-devel/2016-11/msg00468.html
* src/emacs.c (might_dump) [CANNOT_DUMP]: Move enum decl from here ...
* src/lisp.h: ... to here.

src/emacs.c
src/lisp.h

index 48df53390b3c5bf406ce8c563dec2efe3ca620fc..f633f09098da36e6ff6605ce7a70029e2b90e28f 100644 (file)
@@ -130,9 +130,7 @@ Lisp_Object Vlibrary_cache;
    on subsequent starts.  */
 bool initialized;
 
-#ifdef CANNOT_DUMP
-enum { might_dump = false };
-#else
+#ifndef CANNOT_DUMP
 /* Set to true if this instance of Emacs might dump.  */
 # ifndef DOUG_LEA_MALLOC
 static
index e087828d94f7ccda6281989288808e1c176d106f..b4ddad1b2a6c6b3c5c2f114e8932b2bff37ffe74 100644 (file)
@@ -603,8 +603,10 @@ extern void char_table_set (Lisp_Object, int, Lisp_Object);
 extern _Noreturn Lisp_Object wrong_type_argument (Lisp_Object, Lisp_Object);
 extern _Noreturn void wrong_choice (Lisp_Object, Lisp_Object);
 
+#ifdef CANNOT_DUMP
+enum { might_dump = false };
+#elif defined DOUG_LEA_MALLOC
 /* Defined in emacs.c.  */
-#ifdef DOUG_LEA_MALLOC
 extern bool might_dump;
 #endif
 /* True means Emacs has already been initialized.