emacs-devel
[Top][All Lists]
Advanced

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

EMACS_22_BASE build errors on Mac OS X 10.4.11/ppc


From: Yuji Yamano
Subject: EMACS_22_BASE build errors on Mac OS X 10.4.11/ppc
Date: Sun, 20 Jul 2008 13:23:05 -0700 (PDT)

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.  */
 
-- Yuji Yamano
Peace, unity, love and having fun!




reply via email to

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