-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
728f71e
commit f318228
Showing
227 changed files
with
2,175 additions
and
699 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
tesseract/tesseract/include/tesseract/visibility_control.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
// Copyright 2015 Open Source Robotics Foundation, Inc. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
/* This header must be included by all descartes headers which declare symbols | ||
* which are defined in the descartes library. When not building the descartes | ||
* library, i.e. when using the headers in other package's code, the contents | ||
* of this header change the visibility of certain symbols which the descartes | ||
* library cannot have, but the consuming code must have inorder to link. | ||
*/ | ||
#ifndef TESSERACT_VISIBILITY_CONTROL_H | ||
#define TESSERACT_VISIBILITY_CONTROL_H | ||
|
||
// This logic was borrowed (then namespaced) from the examples on the gcc wiki: | ||
// https://gcc.gnu.org/wiki/Visibility | ||
|
||
// clang-format off | ||
#if defined _WIN32 || defined __CYGWIN__ | ||
#ifdef __GNUC__ | ||
#define TESSERACT_EXPORT __attribute__ ((dllexport)) | ||
#define TESSERACT_IMPORT __attribute__ ((dllimport)) | ||
#else | ||
#define TESSERACT_EXPORT __declspec(dllexport) | ||
#define TESSERACT_IMPORT __declspec(dllimport) | ||
#endif | ||
#ifndef TESSERACT_STATIC_LIBRARY | ||
#ifdef TESSERACT_LIBRARY_SHARED | ||
#define TESSERACT_PUBLIC TESSERACT_EXPORT | ||
#else | ||
#define TESSERACT_PUBLIC TESSERACT_IMPORT | ||
#endif | ||
#else | ||
#define TESSERACT_PUBLIC | ||
#endif | ||
#define TESSERACT_PUBLIC_TYPE TESSERACT_PUBLIC | ||
#define TESSERACT_LOCAL | ||
#else | ||
#define TESSERACT_EXPORT __attribute__ ((visibility("default"))) | ||
#define TESSERACT_IMPORT | ||
#if __GNUC__ >= 4 | ||
#define TESSERACT_PUBLIC __attribute__ ((visibility("default"))) | ||
#define TESSERACT_LOCAL __attribute__ ((visibility("hidden"))) | ||
#else | ||
#define TESSERACT_PUBLIC | ||
#define TESSERACT_LOCAL | ||
#endif | ||
#define TESSERACT_PUBLIC_TYPE | ||
#endif | ||
// clang-format on | ||
|
||
#endif // TESSERACT_VISIBILITY_CONTROL_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.