Browse Source

Use deprecated attribute for PRIVATE on Clang since the error attribute was just added in clang 13.

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
466e3737a7
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      include/rack.hpp

+ 4
- 0
include/rack.hpp View File

@@ -12,7 +12,11 @@ Directly including Rack headers other than rack.hpp in your plugin is unsupporte


/** Functions with the PRIVATE attribute should not be called by plugins. /** Functions with the PRIVATE attribute should not be called by plugins.
*/ */
#ifdef __clang__
#define PRIVATE __attribute__((deprecated("Using internal Rack function or symbol")))
#else
#define PRIVATE __attribute__((error("Using internal Rack function or symbol"))) #define PRIVATE __attribute__((error("Using internal Rack function or symbol")))
#endif




#include <common.hpp> #include <common.hpp>


Loading…
Cancel
Save