Avoid potential negative array index access to cached text.
[LibreOffice.git] / vcl / inc / vclpluginapi.h
blob4211a581c979cbd1571e5704d8ed1eb9a11e07e4
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #ifndef INCLUDED_VCL_INC_VCLPLUGINAPI_H
21 #define INCLUDED_VCL_INC_VCLPLUGINAPI_H
23 #include <sal/config.h>
24 #include <sal/types.h>
26 #if defined VCLPLUG_GEN_IMPLEMENTATION
27 #define VCLPLUG_GEN_PUBLIC SAL_DLLPUBLIC_EXPORT
28 #else
29 #define VCLPLUG_GEN_PUBLIC SAL_DLLPUBLIC_IMPORT
30 #endif
32 #if defined VCLPLUG_GTK_IMPLEMENTATION
33 #define VCLPLUG_GTK_PUBLIC SAL_DLLPUBLIC_EXPORT
34 #else
35 #define VCLPLUG_GTK_PUBLIC SAL_DLLPUBLIC_IMPORT
36 #endif
38 #if defined VCLPLUG_KF_IMPLEMENTATION
39 #define VCLPLUG_KF_PUBLIC SAL_DLLPUBLIC_EXPORT
40 #else
41 #define VCLPLUG_KF_PUBLIC SAL_DLLPUBLIC_IMPORT
42 #endif
44 #if defined VCLPLUG_OSX_IMPLEMENTATION
45 #define VCLPLUG_OSX_PUBLIC SAL_DLLPUBLIC_EXPORT
46 #else
47 #define VCLPLUG_OSX_PUBLIC SAL_DLLPUBLIC_IMPORT
48 #endif
50 #if defined VCLPLUG_QT_IMPLEMENTATION
51 #define VCLPLUG_QT_PUBLIC SAL_DLLPUBLIC_EXPORT
52 #else
53 #define VCLPLUG_QT_PUBLIC SAL_DLLPUBLIC_IMPORT
54 #endif
56 #if defined VCLPLUG_SVP_IMPLEMENTATION
57 #define VCLPLUG_SVP_PUBLIC SAL_DLLPUBLIC_EXPORT
58 #else
59 #define VCLPLUG_SVP_PUBLIC SAL_DLLPUBLIC_IMPORT
60 #endif
62 #if defined VCLPLUG_WIN_IMPLEMENTATION
63 #define VCLPLUG_WIN_PUBLIC SAL_DLLPUBLIC_EXPORT
64 #else
65 #define VCLPLUG_WIN_PUBLIC SAL_DLLPUBLIC_IMPORT
66 #endif
68 #if defined DESKTOP_DETECTOR_IMPLEMENTATION
69 #define DESKTOP_DETECTOR_PUBLIC SAL_DLLPUBLIC_EXPORT
70 #else
71 #define DESKTOP_DETECTOR_PUBLIC SAL_DLLPUBLIC_IMPORT
72 #endif
74 #endif
76 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */