From: Stefan Monnier Date: Sun, 16 Jan 2011 15:40:47 +0000 (-0500) Subject: * image.c (syms_of_image): Don't access XSYMBOL's internals directly. X-Git-Tag: emacs-pretest-23.2.93~55 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=0514b4be5148fe07965ce5cec08598da8c8699e3;p=emacs.git * image.c (syms_of_image): Don't access XSYMBOL's internals directly. --- diff --git a/src/ChangeLog b/src/ChangeLog index aa9512abcb2..26aab0d5b5f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2011-01-16 Stefan Monnier + + * image.c (syms_of_image): Don't access XSYMBOL's internals directly. + 2011-01-16 Eli Zaretskii * image.c (syms_of_image): Don't use SET_SYMBOL_VALUE. (Bug#7848) diff --git a/src/image.c b/src/image.c index 31314b0a617..631c73a6008 100644 --- a/src/image.c +++ b/src/image.c @@ -8463,11 +8463,13 @@ non-numeric, there is no explicit limit on the size of images. */); #ifdef HAVE_NTGUI Qlibpng_version = intern_c_string ("libpng-version"); staticpro (&Qlibpng_version); + Fset (Qlibpng_version, #if HAVE_PNG - XSYMBOL (Qlibpng_version)->value = make_number (PNG_LIBPNG_VER); + make_number (PNG_LIBPNG_VER) #else - XSYMBOL (Qlibpng_version)->value = make_number (-1)); + make_number (-1) #endif + ); #endif #if defined (HAVE_XPM) || defined (HAVE_NS)