tesseract  5.0.0
export.h
Go to the documentation of this file.
1 // 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 //
17 
18 #ifndef TESSERACT_PLATFORM_H_
19 #define TESSERACT_PLATFORM_H_
20 
21 #ifndef TESS_API
22 # if defined(_WIN32) || defined(__CYGWIN__)
23 # if defined(TESS_EXPORTS)
24 # define TESS_API __declspec(dllexport)
25 # elif defined(TESS_IMPORTS)
26 # define TESS_API __declspec(dllimport)
27 # else
28 # define TESS_API
29 # endif
30 # else
31 # if defined(TESS_EXPORTS) || defined(TESS_IMPORTS)
32 # define TESS_API __attribute__((visibility("default")))
33 # else
34 # define TESS_API
35 # endif
36 # endif
37 #endif
38 
39 #endif // TESSERACT_PLATFORM_H_