File: appstreamqt_export.h

package info (click to toggle)
appstream 1.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,448 kB
  • sloc: ansic: 51,878; xml: 10,459; cpp: 4,721; python: 538; sh: 264; makefile: 24
file content (38 lines) | stat: -rw-r--r-- 1,015 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38

#ifndef APPSTREAMQT_EXPORT_H
#define APPSTREAMQT_EXPORT_H

// clang-format off
#ifdef APPSTREAMQT_STATIC_DEFINE
#  define APPSTREAMQT_EXPORT
#  define APPSTREAMQT_NO_EXPORT
#else
#  ifndef APPSTREAMQT_EXPORT
#    ifdef AppStreamQt_EXPORTS
        /* We are building this library */
#      define APPSTREAMQT_EXPORT __attribute__((visibility("default")))
#    else
        /* We are using this library */
#      define APPSTREAMQT_EXPORT __attribute__((visibility("default")))
#    endif
#  endif

#  ifndef APPSTREAMQT_NO_EXPORT
#    define APPSTREAMQT_NO_EXPORT __attribute__((visibility("hidden")))
#  endif
#endif

#ifndef APPSTREAMQT_DEPRECATED
#  define APPSTREAMQT_DEPRECATED __attribute__ ((__deprecated__))
#endif

#ifndef APPSTREAMQT_DEPRECATED_EXPORT
#  define APPSTREAMQT_DEPRECATED_EXPORT APPSTREAMQT_EXPORT APPSTREAMQT_DEPRECATED
#endif

#ifndef APPSTREAMQT_DEPRECATED_NO_EXPORT
#  define APPSTREAMQT_DEPRECATED_NO_EXPORT APPSTREAMQT_NO_EXPORT APPSTREAMQT_DEPRECATED
#endif
// clang-format on

#endif