Avoid clang 4.0 -Wexpansion-to-defined warnings

It's not really clear why, but clang 4.0 has decided to start giving warnings
about using the result of an expression constructed using the preprocessor
"defined" operation in #if checks, so trivially avoid doing this.
This commit is contained in:
Vadim Zeitlin
2016-11-28 01:50:30 +01:00
parent 713c3f9d1b
commit 2b764a1b8a
2 changed files with 10 additions and 2 deletions

View File

@@ -20,7 +20,11 @@
#include "wx/utils.h"
#define USE_PUTENV (!defined(HAVE_SETENV) && defined(HAVE_PUTENV))
#if !defined(HAVE_SETENV) && defined(HAVE_PUTENV)
#define USE_PUTENV 1
#else
#define USE_PUTENV 0
#endif
#ifndef WX_PRECOMP
#include "wx/string.h"