зеркало из https://github.com/mozilla/pjs.git
b=383960, moz cairo: fix up compilation with in-tree pixman
This commit is contained in:
Родитель
85a917cc75
Коммит
354481f07f
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче