Browse Source

Make INTERNAL macro use hidden visibility instead of internal.

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
df68876d16
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      include/common.hpp
  2. +1
    -1
      include/rack.hpp

+ 1
- 1
include/common.hpp View File

@@ -35,7 +35,7 @@ E.g.
/** Attribute for private functions and symbols not intended to be used by plugins. /** Attribute for private functions and symbols not intended to be used by plugins.
By default this does nothing, but when #including rack.hpp, it prints a compile-time warning. By default this does nothing, but when #including rack.hpp, it prints a compile-time warning.
*/ */
#define INTERNAL __attribute__((visibility("internal")))
#define INTERNAL __attribute__((visibility("hidden")))




/** Concatenates two literals or two macros /** Concatenates two literals or two macros


+ 1
- 1
include/rack.hpp View File

@@ -100,7 +100,7 @@




#undef INTERNAL #undef INTERNAL
#define INTERNAL __attribute__((visibility("internal"))) __attribute__((error ("Using function or symbol internal to Rack")))
#define INTERNAL __attribute__((visibility("hidden"))) __attribute__((error("Using function or symbol internal to Rack")))




namespace rack { namespace rack {


Loading…
Cancel
Save