Yet Another eXchange Tool 0.11.1
Loading...
Searching...
No Matches
ppm_visibility.h
Go to the documentation of this file.
1
8/*
9 * Keywords:
10 * Maintainer: Thomas Jahns <jahns@dkrz.de>
11 * URL: https://swprojects.dkrz.de/redmine/projects/scales-ppm
12 *
13 * Redistribution and use in source and binary forms, with or without
14 * modification, are permitted provided that the following conditions are
15 * met:
16 *
17 * Redistributions of source code must retain the above copyright notice,
18 * this list of conditions and the following disclaimer.
19 *
20 * Redistributions in binary form must reproduce the above copyright
21 * notice, this list of conditions and the following disclaimer in the
22 * documentation and/or other materials provided with the distribution.
23 *
24 * Neither the name of the DKRZ GmbH nor the names of its contributors
25 * may be used to endorse or promote products derived from this software
26 * without specific prior written permission.
27 *
28 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
29 * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
30 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
31 * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
32 * OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
33 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
34 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
35 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
36 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
37 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
38 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
39 */
40#ifndef PPM_VISIBILITY_H
41#define PPM_VISIBILITY_H
42
43#ifdef HAVE_CONFIG_H
44#include <config.h>
45#endif
46
47#if (defined _WIN32 || defined __CYGWIN__) && defined __PIC__
48# define PPM_DSO_API_EXPORT __declspec(dllexport)
49# define PPM_DSO_INTERNAL
50#else
51# if ((defined __GNUC__ \
52 && (__GNUC__ > 4 || __GNUC__ == 4 && __GNUC_MINOR__ > 1)) \
53 || defined __PGIC__ && __PGIC__ >= 20) \
54 && defined __PIC__
55# define PPM_DSO_API_EXPORT __attribute__ ((visibility ("default")))
56# define PPM_DSO_INTERNAL __attribute__ ((visibility ("hidden")))
57# else
58# define PPM_DSO_API_EXPORT
59# define PPM_DSO_INTERNAL
60# endif
61#endif
62
63#endif
64
65/*
66 * Local Variables:
67 * license-project-url: "https://swprojects.dkrz.de/redmine/projects/scales-ppm"
68 * license-markup: "doxygen"
69 * license-default: "bsd"
70 * c-basic-offset: 2
71 * coding: utf-8
72 * indent-tabs-mode: nil
73 * show-trailing-whitespace: t
74 * require-trailing-newline: t
75 * End:
76 */