| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -68,6 +68,6 @@ struct AllocatedBuffer { | |||
| 68 | 68 | ||
| 69 | 69 | } // namespace node | |
| 70 | 70 | ||
| 71 | - #endif // NODE_WANT_INTERNALS | ||
| 71 | + #endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS | ||
| 72 | 72 | ||
| 73 | 73 | #endif // SRC_ALLOCATED_BUFFER_H_ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -237,7 +237,7 @@ Local<Value> WinapiErrnoException(Isolate* isolate, | |||
| 237 | 237 | ||
| 238 | 238 | return e; | |
| 239 | 239 | } | |
| 240 | - #endif | ||
| 240 | + #endif // _WIN32 | ||
| 241 | 241 | ||
| 242 | 242 | // Implement the legacy name exposed in node.h. This has not been in fact | |
| 243 | 243 | // fatal any more, as the user can handle the exception in the | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1474,7 +1474,7 @@ unsigned int TLSWrap::PskClientCallback( | |||
| 1474 | 1474 | return psk_buf.length(); | |
| 1475 | 1475 | } | |
| 1476 | 1476 | ||
| 1477 | - #endif | ||
| 1477 | + #endif // ifndef OPENSSL_NO_PSK | ||
| 1478 | 1478 | ||
| 1479 | 1479 | void TLSWrap::GetWriteQueueSize(const FunctionCallbackInfo<Value>& info) { | |
| 1480 | 1480 | TLSWrap* wrap; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -960,7 +960,7 @@ int InitializeNodeWithArgs(std::vector<std::string>* argv, | |||
| 960 | 960 | } | |
| 961 | 961 | # endif | |
| 962 | 962 | ||
| 963 | - #endif | ||
| 963 | + #endif // defined(NODE_HAVE_I18N_SUPPORT) | ||
| 964 | 964 | ||
| 965 | 965 | NativeModuleEnv::InitializeCodeCache(); | |
| 966 | 966 | ||
@@ -1091,7 +1091,7 @@ InitializationResult InitializeOncePerProcess( | |||
| 1091 | 1091 | return result; | |
| 1092 | 1092 | } | |
| 1093 | 1093 | } | |
| 1094 | - #else | ||
| 1094 | + #else // OPENSSL_VERSION_MAJOR < 3 | ||
| 1095 | 1095 | if (FIPS_mode()) { | |
| 1096 | 1096 | OPENSSL_init(); | |
| 1097 | 1097 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -283,7 +283,7 @@ class ThreadPoolWork { | |||
| 283 | 283 | ||
| 284 | 284 | #if defined(__POSIX__) && !defined(__ANDROID__) && !defined(__CloudABI__) | |
| 285 | 285 | #define NODE_IMPLEMENTS_POSIX_CREDENTIALS 1 | |
| 286 | - #endif // __POSIX__ && !defined(__ANDROID__) && !defined(__CloudABI__) | ||
| 286 | + #endif // defined(__POSIX__) && !defined(__ANDROID__) && !defined(__CloudABI__) | ||
| 287 | 287 | ||
| 288 | 288 | namespace credentials { | |
| 289 | 289 | bool SafeGetenv(const char* key, std::string* text, Environment* env = nullptr); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -90,7 +90,7 @@ void NativeModuleLoader::InitializeModuleCategories() { | |||
| 90 | 90 | ||
| 91 | 91 | #if !NODE_USE_V8_PLATFORM || !defined(NODE_HAVE_I18N_SUPPORT) | |
| 92 | 92 | "trace_events", | |
| 93 | - #endif // !NODE_USE_V8_PLATFORM | ||
| 93 | + #endif // !NODE_USE_V8_PLATFORM || !defined(NODE_HAVE_I18N_SUPPORT) | ||
| 94 | 94 | ||
| 95 | 95 | #if !HAVE_OPENSSL | |
| 96 | 96 | "crypto", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -83,7 +83,8 @@ void PerProcessOptions::CheckOptions(std::vector<std::string>* errors) { | |||
| 83 | 83 | if ((secure_heap_min & (secure_heap_min - 1)) != 0) | |
| 84 | 84 | errors->push_back("--secure-heap-min must be a power of 2"); | |
| 85 | 85 | } | |
| 86 | - #endif | ||
| 86 | + #endif // HAVE_OPENSSL | ||
| 87 | + | ||
| 87 | 88 | if (use_largepages != "off" && | |
| 88 | 89 | use_largepages != "on" && | |
| 89 | 90 | use_largepages != "silent") { | |
@@ -816,7 +817,7 @@ PerProcessOptionsParser::PerProcessOptionsParser( | |||
| 816 | 817 | "minimum allocation size from the OpenSSL secure heap", | |
| 817 | 818 | &PerProcessOptions::secure_heap_min, | |
| 818 | 819 | kAllowedInEnvironment); | |
| 819 | - #endif | ||
| 820 | + #endif // HAVE_OPENSSL | ||
| 820 | 821 | #if OPENSSL_VERSION_MAJOR >= 3 | |
| 821 | 822 | AddOption("--openssl-legacy-provider", | |
| 822 | 823 | "enable OpenSSL 3.0 legacy provider", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -687,7 +687,7 @@ static void PrintResourceUsage(JSONWriter* writer) { | |||
| 687 | 687 | writer->json_objectend(); | |
| 688 | 688 | writer->json_objectend(); | |
| 689 | 689 | } | |
| 690 | - #endif | ||
| 690 | + #endif // RUSAGE_THREAD | ||
| 691 | 691 | } | |
| 692 | 692 | ||
| 693 | 693 | // Report operating system information. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -262,5 +262,5 @@ v8::MaybeLocal<v8::Value> SocketAddressBlockList::Rule::ToV8String( | |||
| 262 | 262 | } | |
| 263 | 263 | } // namespace node | |
| 264 | 264 | ||
| 265 | - #endif // NODE_WANT_INTERNALS | ||
| 265 | + #endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS | ||
| 266 | 266 | #endif // SRC_NODE_SOCKADDR_INL_H_ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -400,6 +400,6 @@ class SocketAddressBlockListWrap : public BaseObject { | |||
| 400 | 400 | ||
| 401 | 401 | } // namespace node | |
| 402 | 402 | ||
| 403 | - #endif // NOE_WANT_INTERNALS | ||
| 403 | + #endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS | ||
| 404 | 404 | ||
| 405 | 405 | #endif // SRC_NODE_SOCKADDR_H_ | |
| Back | FazBrowse Home | New Git URL |
0 commit comments