bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#13981: 24.3.50; Incorrect declaration of image_background


From: Ken Brown
Subject: bug#13981: 24.3.50; Incorrect declaration of image_background
Date: Sat, 16 Mar 2013 15:57:09 -0400
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2

image_background() is declared in dispextern.h with a return type of `unsigned long'. But it is defined in image.c with a return type of RGB_PIXEL_COLOR, where the latter is a platform-dependent macro defined in image.c.

By luck, this doesn't cause any problems in the currently-supported platforms. But it will cause problems in the cygw32 build on 64-bit Cygwin (which is currently under development). The attached patch fixes this by moving the definition of RGB_PIXEL_COLOR to dispextern.h and changing the return type in the declaration.

OK to apply?

Ken



Attachment: image_background.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]