source: wkhtmltox/trunk/fuentes/src/lib/dllbegin.inc @ 51

Last change on this file since 51 was 51, checked in by mabarracus, 4 years ago

wip

File size: 1.6 KB
Line 
1/* -*- mode: c++; tab-width: 4; indent-tabs-mode: t; eval: (progn (c-set-style "stroustrup") (c-set-offset 'innamespace 0)); -*-
2 * vi:set ts=4 sts=4 sw=4 noet :
3 *
4 * Copyright 2010 wkhtmltopdf authors
5 *
6 * This file is part of wkhtmltopdf.
7 *
8 * wkhtmltopdf is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU Lesser General Public License as published by
10 * the Free Software Foundation, either version 3 of the License, or
11 * (at your option) any later version.
12 *
13 * wkhtmltopdf is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public License
19 * along with wkhtmltopdf.  If not, see <http: *www.gnu.org/licenses/>.
20 */
21
22#ifndef __WKHTMLTOPDF_DLLBEGIN__
23#define __WKHTMLTOPDF_DLLBEGIN__
24
25#if defined _WIN32 || defined __CYGWIN__
26  #ifdef BUILDING_DLL
27     #define DLL_PUBLIC __declspec(dllexport)
28  #else
29     #define DLL_PUBLIC __declspec(dllimport)
30  #endif
31  #define DLL_LOCAL
32#else
33  #if __GNUC__ >= 4
34    #define DLL_PUBLIC __attribute__ ((visibility("default")))
35    #define DLL_LOCAL  __attribute__ ((visibility("hidden")))
36  #else
37    #define DLL_PUBLIC
38    #define DLL_LOCAL
39  #endif
40#endif
41
42#if defined _WIN32
43#define CALLTYPE __stdcall
44#else
45#define CALLTYPE
46#endif
47
48#ifdef __cplusplus
49  #define CAPI(type) extern "C" DLL_PUBLIC type CALLTYPE
50#else
51  #define CAPI(type) DLL_PUBLIC type CALLTYPE
52#endif
53
54#endif /*__WKHTMLTOPDF_DLLBEGIN__*/
Note: See TracBrowser for help on using the repository browser.