Fix non-GTK builds on Cygwin
authorKen Brown <kbrown@cornell.edu>
Tue, 20 Nov 2012 13:26:40 +0000 (08:26 -0500)
committerKen Brown <kbrown@cornell.edu>
Tue, 20 Nov 2012 13:26:40 +0000 (08:26 -0500)
* src/emacs.c (main): Set the G_SLICE environment variable for all
  Cygwin builds, not just GTK builds.  See
  https://lists.gnu.org/archive/html/emacs-devel/2012-11/msg00368.html.

src/ChangeLog
src/emacs.c

index da5a960..3836e32 100644 (file)
@@ -1,3 +1,9 @@
+2012-11-20  Ken Brown  <kbrown@cornell.edu>
+
+       * emacs.c (main): Set the G_SLICE environment variable for all
+       Cygwin builds, not just GTK builds.  See
+       https://lists.gnu.org/archive/html/emacs-devel/2012-11/msg00368.html.
+
 2012-11-19  Eli Zaretskii  <eliz@gnu.org>
 
        * xdisp.c (start_hourglass) [HAVE_NTGUI]: Don't mix declaration of
index 98e3f11..f533c3a 100644 (file)
@@ -702,7 +702,7 @@ main (int argc, char **argv)
   stack_base = &dummy;
 #endif
 
-#if defined (USE_GTK) && defined (G_SLICE_ALWAYS_MALLOC)
+#ifdef G_SLICE_ALWAYS_MALLOC
   /* This is used by the Cygwin build.  */
   setenv ("G_SLICE", "always-malloc", 1);
 #endif