mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-04-22 10:30:41 +02:00
qt: Define cairo-qt's API as C symbols
That way, the C linker doesn't mess up when linking libcairo.so.
This commit is contained in:
parent
5d4a4775c8
commit
d6362a0d76
1 changed files with 4 additions and 8 deletions
|
|
@ -41,10 +41,10 @@
|
|||
|
||||
#if CAIRO_HAS_QT_SURFACE
|
||||
|
||||
#if defined(__cplusplus)
|
||||
#include <QtGui/QImage>
|
||||
#include <QtGui/QPainter>
|
||||
|
||||
class QPainter;
|
||||
class QImage;
|
||||
CAIRO_BEGIN_DECLS
|
||||
|
||||
cairo_public cairo_surface_t *
|
||||
cairo_qt_surface_create (QPainter *painter);
|
||||
|
|
@ -74,11 +74,7 @@ cairo_qt_surface_get_image (cairo_surface_t *surface);
|
|||
cairo_public QImage *
|
||||
cairo_qt_surface_get_qimage (cairo_surface_t *surface);
|
||||
|
||||
#else /* ! __cplusplus */
|
||||
|
||||
# warning cairo-qt only exports a C++ interface
|
||||
|
||||
#endif /* __cplusplus */
|
||||
CAIRO_END_DECLS
|
||||
|
||||
#else /* CAIRO_HAS_QT_SURFACE */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue