Permalink
Browse files
Unix: avoid unused function warnings
- Loading branch information
Showing
with
11 additions
and
5 deletions.
-
+11
−5
src/uv-common.h
|
@@ -35,12 +35,18 @@ |
|
|
|
|
|
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0])) |
|
|
|
|
|
#if !defined(NDEBUG) |
|
|
# define INLINE /* empty */ |
|
|
#elif defined(_MSC_VER) |
|
|
# define INLINE __inline |
|
|
#ifdef DEBUG |
|
|
# ifdef _MSC_VER |
|
|
# define INLINE /* empty */ |
|
|
# else |
|
|
# define INLINE __attribute__((unused)) |
|
|
# endif |
|
|
#else |
|
|
# define INLINE inline |
|
|
# ifdef _MSC_VER |
|
|
# define INLINE __inline |
|
|
# else |
|
|
# define INLINE inline |
|
|
# endif |
|
|
#endif |
|
|
|
|
|
#ifndef _WIN32 |
|
|
0 comments on commit
97948e6