1 /* ***** BEGIN LICENSE BLOCK *****
2  * Version: MPL 1.1
3  *
4  * The contents of this file are subject to the Mozilla Public License Version
5  * 1.1 (the "License"); you may not use this file except in compliance with
6  * the License. You may obtain a copy of the License at
7  * http://www.mozilla.org/MPL/
8  *
9  * Software distributed under the License is distributed on an "AS IS" basis,
10  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11  * for the specific language governing rights and limitations under the
12  * License.
13  *
14  * Contributor(s):
15  *
16  * IBM
17  * -  Binding to permit interfacing between Cairo and SWT
18  * -  Copyright (C) 2005, 2012 IBM Corp.  All Rights Reserved.
19  *
20  * ***** END LICENSE BLOCK ***** */
21 
22 /* Libraries for dynamic loaded functions */
23 #ifdef _WIN32
24 #define LIB_CAIRO "libcairo-2.dll"
25 #else
26 #define LIB_CAIRO "libcairo.so.2"
27 #endif
28 
29 #define cairo_pdf_surface_set_size_LIB LIB_CAIRO
30 #define cairo_ps_surface_set_size_LIB LIB_CAIRO
31 #define cairo_surface_set_device_scale_LIB LIB_CAIRO
32 #define cairo_surface_get_device_scale_LIB LIB_CAIRO
33 
34 #ifdef CAIRO_HAS_XLIB_SURFACE
35 #define cairo_xlib_surface_get_height_LIB LIB_CAIRO
36 #define cairo_xlib_surface_get_width_LIB LIB_CAIRO
37 #endif
38