[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: EMACS_22_BASE build errors on Mac OS X 10.4.11/ppc
From: |
YAMAMOTO Mitsuharu |
Subject: |
Re: EMACS_22_BASE build errors on Mac OS X 10.4.11/ppc |
Date: |
Mon, 21 Jul 2008 13:25:21 +0900 |
User-agent: |
Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (Shijō) APEL/10.6 Emacs/22.2.50 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) |
>>>>> On Sun, 20 Jul 2008 13:23:05 -0700 (PDT), Yuji Yamano <address@hidden>
>>>>> said:
> I got the folllwiong compilation error message while buillding
> emacs EMACS_22_BASE on Mac OS X 10.4.11/ppc.
> macterm.c: In function 'XDrawLine':
> macterm.c:422: error: 'kCGBitmapByteOrder32Host' undeclared (first use in
> this function)
> macterm.c:422: error: (Each undeclared identifier is reported only once
> macterm.c:422: error: for each function it appears in.)
> macterm.c: In function 'XCreatePixmapFromBitmapData':
> macterm.c:754: error: 'kCGBitmapByteOrder32Host' undeclared (first use in
> this function)
> make[2]: *** [macterm.o] Error 1
> make[1]: *** [bootstrap-build] Error 2
> make: *** [bootstrap] Error 2
> Here is the pacth to fix the problem.
> Index: macterm.h
> ===================================================================
> RCS file: /cvsroot/emacs/emacs/src/macterm.h,v
> retrieving revision 1.57.2.9
> diff -u -r1.57.2.9 macterm.h
> --- macterm.h 11 Jul 2008 08:53:20 -0000 1.57.2.9
> +++ macterm.h 20 Jul 2008 18:51:01 -0000
> @@ -46,6 +46,11 @@
> #define FONT_BASE(f) ((f)->ascent)
> #define FONT_DESCENT(f) ((f)->descent)
> +/* kCGBitmapByteOrder32Host is not defined on macosx/ppc 10.4 */
> +#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1040 ||
> !defined(kCGBitmapByteOrder32Host)
> +#define kCGBitmapByteOrder32Host 0
> +#endif
> +
> /* Structure recording bitmaps and reference count.
> If REFCOUNT is 0 then this record is free to be reused. */
Thanks for the report. I've installed slightly different changes.
YAMAMOTO Mitsuharu
address@hidden