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]>
  • Loading branch information
CursedRock17 committed Nov 6, 2024
1 parent 3a21ba2 commit 7193c0a
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 65 deletions.
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 7193c0a

Please sign in to comment.