1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-08 08:43:52 -08:00

Invert preprocessor condition to fix 'C-x 4 a'

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.
This commit is contained in:
Stefan Kangas 2024-12-16 03:26:48 +01:00
parent 29058579e9
commit eaf5bf736e

View file

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