summaryrefslogtreecommitdiff
path: root/src/nsimage.m
diff options
context:
space:
mode:
authorAdrian Robert <Adrian.B.Robert@gmail.com>2008-11-25 02:45:39 +0000
committerAdrian Robert <Adrian.B.Robert@gmail.com>2008-11-25 02:45:39 +0000
commit5a06864fb69973eb2be01e230a98d6c24ff2138c (patch)
tree4a9039884d5f65352c64a72970a8fdd198e3476f /src/nsimage.m
parent3a37fceafaf3bf2697849012e20d265a228d431b (diff)
downloademacs-5a06864fb69973eb2be01e230a98d6c24ff2138c.tar.gz
emacs-5a06864fb69973eb2be01e230a98d6c24ff2138c.tar.bz2
emacs-5a06864fb69973eb2be01e230a98d6c24ff2138c.zip
Fix bug #1362. * image.c (x_clear_image_1): Do not free background under HAVE_NS, it is not an indexed color. * nsterm.m (free_indexed_color): Add argument checking. * nsfns.m: Move config.h to before system includes (advised by Dan N.).
Diffstat (limited to 'src/nsimage.m')
-rw-r--r--src/nsimage.m3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nsimage.m b/src/nsimage.m
index cf974be6c43..0cbb4d0d116 100644
--- a/src/nsimage.m
+++ b/src/nsimage.m
@@ -25,7 +25,10 @@ MacOSX/Aqua port by Christophe de Dinechin (descubes@earthlink.net)
GNUstep port and post-20 update by Adrian Robert (arobert@cogsci.ucsd.edu)
*/
+/* This should be the first include, as it may set up #defines affecting
+ interpretation of even the system includes. */
#include "config.h"
+
#include "lisp.h"
#include "dispextern.h"
#include "nsterm.h"