]> git.eshelyaron.com Git - emacs.git/commitdiff
Invert preprocessor condition to fix 'C-x 4 a'
authorStefan Kangas <stefankangas@gmail.com>
Mon, 16 Dec 2024 02:26:48 +0000 (03:26 +0100)
committerEshel Yaron <me@eshelyaron.com>
Mon, 23 Dec 2024 15:01:22 +0000 (16:01 +0100)
Typing 'C-x 4 a' in the main function now correctly adds 'main' to the
generated ChangeLog, whereas before it added 'andreid_emacs_init'.
Inverting the preprocessor condition seems like an easier fix than
changing the add-change-log-entry-other-window heuristic.

* src/emacs.c (main): Invert preprocessor condition to appease the
'add-change-log-entry-other-window' heuristic.

(cherry picked from commit eaf5bf736e1dd5eb977a16a3f1b3dfd3da3c4612)

src/emacs.c

index bdd9eee10c48d9e5db0928cad885049343abdafb..25b014bf83c554a8a305170a84d8ea9f2ffa8e64 100644 (file)
@@ -1263,12 +1263,12 @@ maybe_load_seccomp (int argc, char **argv)
 
 #endif  /* SECCOMP_USABLE */
 
-#if defined HAVE_ANDROID && !defined ANDROID_STUBIFY
+#if !defined HAVE_ANDROID || defined ANDROID_STUBIFY
 int
-android_emacs_init (int argc, char **argv, char *dump_file)
+main (int argc, char **argv)
 #else
 int
-main (int argc, char **argv)
+android_emacs_init (int argc, char **argv, char *dump_file)
 #endif
 {
   /* Variable near the bottom of the stack, and aligned appropriately