src: lint #defines in src/node.h
A few #defines in src/node.h had inconsistent spacing and tabbing. This commit changes the spacing to be the same style as the rest of the project. PR-URL: https://github.com/nodejs/node/pull/28547 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Michaël Zasso <targos@protonmail.com>
This commit is contained in:
parent
824dc576db
commit
d0e380172a
12
src/node.h
12
src/node.h
@ -24,9 +24,9 @@
|
|||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
# ifndef BUILDING_NODE_EXTENSION
|
# ifndef BUILDING_NODE_EXTENSION
|
||||||
# define NODE_EXTERN __declspec(dllexport)
|
# define NODE_EXTERN __declspec(dllexport)
|
||||||
# else
|
# else
|
||||||
# define NODE_EXTERN __declspec(dllimport)
|
# define NODE_EXTERN __declspec(dllimport)
|
||||||
# endif
|
# endif
|
||||||
#else
|
#else
|
||||||
# define NODE_EXTERN __attribute__((visibility("default")))
|
# define NODE_EXTERN __attribute__((visibility("default")))
|
||||||
@ -43,7 +43,7 @@
|
|||||||
// See issue https://github.com/nodejs/node-v0.x-archive/issues/1236
|
// See issue https://github.com/nodejs/node-v0.x-archive/issues/1236
|
||||||
#if defined(__MINGW32__) || defined(_MSC_VER)
|
#if defined(__MINGW32__) || defined(_MSC_VER)
|
||||||
#ifndef _WIN32_WINNT
|
#ifndef _WIN32_WINNT
|
||||||
# define _WIN32_WINNT 0x0600 // Windows Server 2008
|
# define _WIN32_WINNT 0x0600 // Windows Server 2008
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef NOMINMAX
|
#ifndef NOMINMAX
|
||||||
@ -57,7 +57,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
# define SIGKILL 9
|
# define SIGKILL 9
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "v8.h" // NOLINT(build/include_order)
|
#include "v8.h" // NOLINT(build/include_order)
|
||||||
@ -190,8 +190,8 @@ NODE_DEPRECATED("Use MakeCallback(..., async_context)",
|
|||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
|
||||||
#ifndef NODE_STRINGIFY
|
#ifndef NODE_STRINGIFY
|
||||||
#define NODE_STRINGIFY(n) NODE_STRINGIFY_HELPER(n)
|
# define NODE_STRINGIFY(n) NODE_STRINGIFY_HELPER(n)
|
||||||
#define NODE_STRINGIFY_HELPER(n) #n
|
# define NODE_STRINGIFY_HELPER(n) #n
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
Loading…
x
Reference in New Issue
Block a user