Skip to content

Commit aa72c76

Browse files
committed
Duplicate fault_controller/include/fault_controller/visibility_control.h history in twist_controller/include/twist_controller/ history.
1 parent 65525bf commit aa72c76

File tree

10 files changed

+49
-0
lines changed

10 files changed

+49
-0
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.

fault_controller/kortex2_controllers/include/kortex2_controllers/fault_controller.hpp renamed to fault_controller/include/fault_controller/fault_controller.hpp

File renamed without changes.

fault_controller/kortex2_controllers/include/kortex2_controllers/twist_controller.hpp renamed to fault_controller/include/fault_controller/twist_controller.hpp

File renamed without changes.

fault_controller/kortex2_controllers/include/kortex2_controllers/visibility_control.h renamed to fault_controller/include/fault_controller/visibility_control.h

File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
// Copyright 2021, PickNik Inc.
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
#ifndef KORTEX2_CONTROLLERS__VISIBILITY_CONTROL_H_
16+
#define KORTEX2_CONTROLLERS__VISIBILITY_CONTROL_H_
17+
18+
// This logic was borrowed (then namespaced) from the examples on the gcc wiki:
19+
// https://gcc.gnu.org/wiki/Visibility
20+
21+
#if defined _WIN32 || defined __CYGWIN__
22+
#ifdef __GNUC__
23+
#define KORTEX2_CONTROLLERS_EXPORT __attribute__((dllexport))
24+
#define KORTEX2_CONTROLLERS_IMPORT __attribute__((dllimport))
25+
#else
26+
#define KORTEX2_CONTROLLERS_EXPORT __declspec(dllexport)
27+
#define KORTEX2_CONTROLLERS_IMPORT __declspec(dllimport)
28+
#endif
29+
#ifdef KORTEX2_CONTROLLERS_BUILDING_LIBRARY
30+
#define KORTEX2_CONTROLLERS_PUBLIC KORTEX2_CONTROLLERS_EXPORT
31+
#else
32+
#define KORTEX2_CONTROLLERS_PUBLIC KORTEX2_CONTROLLERS_IMPORT
33+
#endif
34+
#define KORTEX2_CONTROLLERS_PUBLIC_TYPE KORTEX2_CONTROLLERS_PUBLIC
35+
#define KORTEX2_CONTROLLERS_LOCAL
36+
#else
37+
#define KORTEX2_CONTROLLERS_EXPORT __attribute__((visibility("default")))
38+
#define KORTEX2_CONTROLLERS_IMPORT
39+
#if __GNUC__ >= 4
40+
#define KORTEX2_CONTROLLERS_PUBLIC __attribute__((visibility("default")))
41+
#define KORTEX2_CONTROLLERS_LOCAL __attribute__((visibility("hidden")))
42+
#else
43+
#define KORTEX2_CONTROLLERS_PUBLIC
44+
#define KORTEX2_CONTROLLERS_LOCAL
45+
#endif
46+
#define KORTEX2_CONTROLLERS_PUBLIC_TYPE
47+
#endif
48+
49+
#endif // KORTEX2_CONTROLLERS__VISIBILITY_CONTROL_H_
File renamed without changes.

0 commit comments

Comments
 (0)