aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/generatorrunnermacros.h
blob: 1b204bf62a27e7889cd36d5df24db9eeffe13d66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#ifndef GENERATORRUNNERMACROS_H
#define GENERATORRUNNERMACROS_H

// GENRUNNER_API is used for the public API symbols.
#if defined _WIN32
    #define GENRUNNER_EXPORT __declspec(dllexport)
    #if GENRUNNER_EXPORTS
        #define GENRUNNER_API GENRUNNER_EXPORT
    #endif
#elif __GNUC__ >= 4
    #define GENRUNNER_EXPORT __attribute__ ((visibility("default")))
    #define GENRUNNER_API GENRUNNER_EXPORT
#elif __GNUC__ < 4
    #define GENRUNNER_EXPORT
#endif

#ifndef GENRUNNER_API
    #define GENRUNNER_API
#endif
#endif