tesseract v5.3.3.20231005
export.h
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2// File: export.h
3// Description: Place holder
4//
5// (C) Copyright 2006, Google Inc.
6// Licensed under the Apache License, Version 2.0 (the "License");
7// you may not use this file except in compliance with the License.
8// You may obtain a copy of the License at
9// http://www.apache.org/licenses/LICENSE-2.0
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16#ifndef TESSERACT_PLATFORM_H_
17#define TESSERACT_PLATFORM_H_
18
19#ifndef TESS_API
20# if defined(_WIN32) || defined(__CYGWIN__)
21# if defined(TESS_EXPORTS)
22# define TESS_API __declspec(dllexport)
23# elif defined(TESS_IMPORTS)
24# define TESS_API __declspec(dllimport)
25# else
26# define TESS_API
27# endif
28# else
29# if defined(TESS_EXPORTS) || defined(TESS_IMPORTS)
30# define TESS_API __attribute__((visibility("default")))
31# else
32# define TESS_API
33# endif
34# endif
35#endif
36
37#endif // TESSERACT_PLATFORM_H_