Skip to content

Commit

Permalink
Merge pull request #523 from goloap/fix365
Browse files Browse the repository at this point in the history
Fix issue #365. ELPP_DISABLE_LOGS not working in VS
  • Loading branch information
abumq committed Mar 31, 2017
2 parents 2f091c9 + df2f3c8 commit 2c65a15
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/easylogging++.h
Expand Up @@ -283,7 +283,11 @@ ELPP_INTERNAL_DEBUGGING_OUT_INFO << ELPP_INTERNAL_DEBUGGING_MSG(internalInfoStre
#define ELPP_VARIADIC_TEMPLATES_SUPPORTED \
(ELPP_COMPILER_GCC || ELPP_COMPILER_CLANG || ELPP_COMPILER_INTEL || (ELPP_COMPILER_MSVC && _MSC_VER >= 1800))
// Logging Enable/Disable macros
#define ELPP_LOGGING_ENABLED (!defined(ELPP_DISABLE_LOGS))
#if defined(ELPP_DISABLE_LOGS)
#define ELPP_LOGGING_ENABLED 0
#else
#define ELPP_LOGGING_ENABLED 1
#endif
#if (!defined(ELPP_DISABLE_DEBUG_LOGS) && (ELPP_LOGGING_ENABLED) && ((defined(_DEBUG)) || (!defined(NDEBUG))))
# define ELPP_DEBUG_LOG 1
#else
Expand Down

0 comments on commit 2c65a15

Please sign in to comment.