| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent e3e5ef1 commit a408f27
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -111,15 +111,7 @@ | |||
| 111 | 111 | #if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS | |
| 112 | 112 | # define NODE_DEPRECATED(message, declarator) declarator | |
| 113 | 113 | #else // NODE_WANT_INTERNALS | |
| 114 | - # if NODE_CLANG_AT_LEAST(2, 9, 0) || NODE_GNUC_AT_LEAST(4, 5, 0) | ||
| 115 | - # define NODE_DEPRECATED(message, declarator) \ | ||
| 116 | - __attribute__((deprecated(message))) declarator | ||
| 117 | - # elif defined(_MSC_VER) | ||
| 118 | - # define NODE_DEPRECATED(message, declarator) \ | ||
| 119 | - __declspec(deprecated) declarator | ||
| 120 | - # else | ||
| 121 | - # define NODE_DEPRECATED(message, declarator) declarator | ||
| 122 | - # endif | ||
| 114 | + #define NODE_DEPRECATED(message, declarator) [[deprecated(message)]] declarator | ||
| 123 | 115 | #endif | |
| 124 | 116 | ||
| 125 | 117 | // Forward-declare libuv loop | |
| Back | FazBrowse Home | New Git URL |
0 commit comments