-
Notifications
You must be signed in to change notification settings - Fork 9
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
Showing
6 changed files
with
62 additions
and
61 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
This file was deleted.
Oops, something went wrong.
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,58 @@ | ||
// Copyright 2020-2024 RT Corporation | ||
// | ||
// 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. | ||
|
||
#ifndef RASPIMOUSE_ROS2_EXAMPLES__VISIBILITY_CONTROL_HPP_ | ||
#define RASPIMOUSE_ROS2_EXAMPLES__VISIBILITY_CONTROL_HPP_ | ||
|
||
#ifdef __cplusplus | ||
extern "C" | ||
{ | ||
#endif | ||
|
||
// This logic was borrowed (then namespaced) from the examples on the gcc wiki: | ||
// https://gcc.gnu.org/wiki/Visibility | ||
|
||
#if defined _WIN32 || defined __CYGWIN__ | ||
#ifdef __GNUC__ | ||
#define RASPIMOUSE_ROS2_EXAMPLES_EXPORT __attribute__ ((dllexport)) | ||
#define RASPIMOUSE_ROS2_EXAMPLES_IMPORT __attribute__ ((dllimport)) | ||
#else | ||
#define RASPIMOUSE_ROS2_EXAMPLES_EXPORT __declspec(dllexport) | ||
#define RASPIMOUSE_ROS2_EXAMPLES_IMPORT __declspec(dllimport) | ||
#endif | ||
#ifdef RASPIMOUSE_ROS2_EXAMPLES_BUILDING_DLL | ||
#define RASPIMOUSE_ROS2_EXAMPLES_PUBLIC RASPIMOUSE_ROS2_EXAMPLES_EXPORT | ||
#else | ||
#define RASPIMOUSE_ROS2_EXAMPLES_PUBLIC RASPIMOUSE_ROS2_EXAMPLES_IMPORT | ||
#endif | ||
#define RASPIMOUSE_ROS2_EXAMPLES_PUBLIC_TYPE RASPIMOUSE_ROS2_EXAMPLES_PUBLIC | ||
#define RASPIMOUSE_ROS2_EXAMPLES_LOCAL | ||
#else | ||
#define RASPIMOUSE_ROS2_EXAMPLES_EXPORT __attribute__ ((visibility("default"))) | ||
#define RASPIMOUSE_ROS2_EXAMPLES_IMPORT | ||
#if __GNUC__ >= 4 | ||
#define RASPIMOUSE_ROS2_EXAMPLES_PUBLIC __attribute__ ((visibility("default"))) | ||
#define RASPIMOUSE_ROS2_EXAMPLES_LOCAL __attribute__ ((visibility("hidden"))) | ||
#else | ||
#define RASPIMOUSE_ROS2_EXAMPLES_PUBLIC | ||
#define RASPIMOUSE_ROS2_EXAMPLES_LOCAL | ||
#endif | ||
#define RASPIMOUSE_ROS2_EXAMPLES_PUBLIC_TYPE | ||
#endif | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif // RASPIMOUSE_ROS2_EXAMPLES__VISIBILITY_CONTROL_HPP_ |