b=383960, moz cairo: fix up compilation with in-tree pixman

This commit is contained in:
vladimir@pobox.com 2007-07-24 10:43:30 -07:00
parent e6da053270
commit 6870aa70dc
4 changed files with 16 additions and 0 deletions

View File

@ -81,6 +81,7 @@ CSRCS = \
cairo-debug.c \
cairo-deflate-stream.c \
cairo-fixed.c \
cairo-font-face.c \
cairo-font-options.c \
cairo-freelist.c \
cairo-gstate.c \
@ -197,3 +198,7 @@ DEFINES += -DPACKAGE_VERSION="\"moz\"" -DPACKAGE_BUGREPORT="\"http://bugzilla.mo
ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
DEFINES += -DCAIRO_WIN32_STATIC_BUILD
endif
ifdef MOZ_TREE_CAIRO
DEFINES += -DMOZ_TREE_CAIRO
endif

View File

@ -49,6 +49,9 @@
CAIRO_BEGIN_DECLS
#ifndef MOZILLA_CAIRO_NOT_DEFINED
#define CAIRO_NO_MUTEX 1
#endif
/* A fully qualified no-operation statement */
#define CAIRO_MUTEX_NOOP do {/*no-op*/} while (0)

View File

@ -37,7 +37,11 @@
#ifndef CAIRO_REGION_PRIVATE_H
#define CAIRO_REGION_PRIVATE_H
#ifdef MOZ_TREE_CAIRO
#include "pixman.h"
#else
#include <pixman/pixman.h>
#endif
/* cairo_region_t is defined in cairoint.h */

View File

@ -64,7 +64,11 @@
#include <stdio.h>
#include "cairo.h"
#ifdef MOZ_TREE_CAIRO
#include "pixman.h"
#else
#include <pixman/pixman.h>
#endif
#ifdef _MSC_VER
#define snprintf _snprintf