mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
b=383960, moz cairo: fix up compilation with in-tree pixman
This commit is contained in:
parent
e6da053270
commit
6870aa70dc
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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 */
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user