Skip to content

Commit

Permalink
Reverting visibility_control changes
Browse files Browse the repository at this point in the history
Signed-off-by: CursedRock17 <[email protected]>

Visibility Controls utils.hpp

Signed-off-by: Lucas Wendland <[email protected]>

Visibility Controls convert.hpp

Signed-off-by: Lucas Wendland <[email protected]>

Visibility Controls  Quaternion.hpp

Signed-off-by: Lucas Wendland <[email protected]>

Visibility Controls Vector3.hpp

Signed-off-by: Lucas Wendland <[email protected]>

Visibility Controls  QuadWord.hpp

Signed-off-by: Lucas Wendland <[email protected]>

Visibility Controls Transform.hpp

Signed-off-by: Lucas Wendland <[email protected]>

Visibility Controls  exceptions.hpp

Signed-off-by: Lucas Wendland <[email protected]>

Visibility Controls time_cache.hpp

Signed-off-by: Lucas Wendland <[email protected]>

Visibility Controls transform_storage.hpp

Signed-off-by: Lucas Wendland <[email protected]>

Update time.hpp

Signed-off-by: Lucas Wendland <[email protected]>

Update buffer_core.hpp

Signed-off-by: Lucas Wendland <[email protected]>

Update buffer_core_interface.hpp

Signed-off-by: Lucas Wendland <[email protected]>
  • Loading branch information
CursedRock17 committed Nov 6, 2024
1 parent 3a21ba2 commit f390cce
Show file tree
Hide file tree
Showing 14 changed files with 43 additions and 77 deletions.
2 changes: 1 addition & 1 deletion tf2/include/tf2/LinearMath/QuadWord.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ subject to the following restrictions:

#include "Scalar.hpp"
#include "MinMax.hpp"
#include "tf2/visibility_control.hpp"
#include "tf2/visibility_control.h"


#if defined (__CELLOS_LV2) && defined (__SPU__)
Expand Down
2 changes: 1 addition & 1 deletion tf2/include/tf2/LinearMath/Quaternion.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ subject to the following restrictions:

#include "Vector3.hpp"
#include "QuadWord.hpp"
#include "tf2/visibility_control.hpp"
#include "tf2/visibility_control.h"

namespace tf2
{
Expand Down
2 changes: 1 addition & 1 deletion tf2/include/tf2/LinearMath/Transform.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ subject to the following restrictions:


#include "Matrix3x3.hpp"
#include "tf2/visibility_control.hpp"
#include "tf2/visibility_control.h"


namespace tf2
Expand Down
2 changes: 1 addition & 1 deletion tf2/include/tf2/LinearMath/Vector3.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ subject to the following restrictions:

#include "Scalar.hpp"
#include "MinMax.hpp"
#include "tf2/visibility_control.hpp"
#include "tf2/visibility_control.h"

namespace tf2
{
Expand Down
2 changes: 1 addition & 1 deletion tf2/include/tf2/buffer_core.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
#include "tf2/buffer_core_interface.hpp"
#include "tf2/exceptions.hpp"
#include "tf2/transform_storage.hpp"
#include "tf2/visibility_control.hpp"
#include "tf2/visibility_control.h"

namespace tf2
{
Expand Down
2 changes: 1 addition & 1 deletion tf2/include/tf2/buffer_core_interface.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#include "geometry_msgs/msg/transform_stamped.hpp"

#include "tf2/time.hpp"
#include "tf2/visibility_control.hpp"
#include "tf2/visibility_control.h"

namespace tf2
{
Expand Down
2 changes: 1 addition & 1 deletion tf2/include/tf2/convert.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#include "tf2/exceptions.hpp"
#include "tf2/impl/convert.hpp"
#include "tf2/transform_datatypes.hpp"
#include "tf2/visibility_control.hpp"
#include "tf2/visibility_control.h"

namespace tf2
{
Expand Down
2 changes: 1 addition & 1 deletion tf2/include/tf2/exceptions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
#include <cstdint>
#include <string>

#include "tf2/visibility_control.hpp"
#include "tf2/visibility_control.h"

namespace tf2
{
Expand Down
2 changes: 1 addition & 1 deletion tf2/include/tf2/time.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include <cmath>
#include <string>

#include "tf2/visibility_control.hpp"
#include "tf2/visibility_control.h"

namespace tf2
{
Expand Down
3 changes: 2 additions & 1 deletion tf2/include/tf2/time_cache.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,15 @@
#ifndef TF2__TIME_CACHE_HPP_
#define TF2__TIME_CACHE_HPP_

#include "tf2/visibility_control.h"

#include <chrono>
#include <memory>
#include <list>
#include <sstream>
#include <string>
#include <utility>

#include "tf2/visibility_control.hpp"
#include "tf2/transform_storage.hpp"
#include "tf2/exceptions.hpp"

Expand Down
3 changes: 2 additions & 1 deletion tf2/include/tf2/transform_storage.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@
#ifndef TF2__TRANSFORM_STORAGE_HPP_
#define TF2__TRANSFORM_STORAGE_HPP_

#include "tf2/visibility_control.h"

#include "tf2/LinearMath/Vector3.hpp"
#include "tf2/LinearMath/Quaternion.hpp"
#include "tf2/time.hpp"
#include "tf2/visibility_control.hpp"

namespace tf2
{
Expand Down
2 changes: 1 addition & 1 deletion tf2/include/tf2/utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include <tf2/LinearMath/Transform.hpp>
#include <tf2/LinearMath/Quaternion.hpp>
#include <tf2/impl/utils.hpp>
#include <tf2/visibility_control.hpp>
#include <tf2/visibility_control.h>

namespace tf2
{
Expand Down
31 changes: 29 additions & 2 deletions tf2/include/tf2/visibility_control.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,35 @@
#ifndef TF2__VISIBILITY_CONTROL_H_
#define TF2__VISIBILITY_CONTROL_H_

#warning This header is obsolete, please include tf2/visibility_control.hpp instead
// This logic was borrowed (then namespaced) from the examples on the gcc wiki:
// https://gcc.gnu.org/wiki/Visibility

#include <tf2/visibility_control.hpp>
#if defined _WIN32 || defined __CYGWIN__
#ifdef __GNUC__
#define TF2_EXPORT __attribute__ ((dllexport))
#define TF2_IMPORT __attribute__ ((dllimport))
#else
#define TF2_EXPORT __declspec(dllexport)
#define TF2_IMPORT __declspec(dllimport)
#endif
#ifdef TF2_BUILDING_DLL
#define TF2_PUBLIC TF2_EXPORT
#else
#define TF2_PUBLIC TF2_IMPORT
#endif
#define TF2_PUBLIC_TYPE TF2_PUBLIC
#define TF2_LOCAL
#else
#define TF2_EXPORT __attribute__ ((visibility("default")))
#define TF2_IMPORT
#if __GNUC__ >= 4
#define TF2_PUBLIC __attribute__ ((visibility("default")))
#define TF2_LOCAL __attribute__ ((visibility("hidden")))
#else
#define TF2_PUBLIC
#define TF2_LOCAL
#endif
#define TF2_PUBLIC_TYPE
#endif

#endif // TF2__VISIBILITY_CONTROL_H_
63 changes: 0 additions & 63 deletions tf2/include/tf2/visibility_control.hpp

This file was deleted.

0 comments on commit f390cce

Please sign in to comment.