From a568f35978bd82af114ab5b73f5beb2633899a09 Mon Sep 17 00:00:00 2001 From: Simon Richter Date: Thu, 14 Jan 2016 20:48:44 -0500 Subject: [PATCH] Fix preprocessor logic The C++ preprocessor is actually not required to process "true" and "false" correctly. This works in C if is included, because these are then macros themselves, and resolved correctly, but C++ requires them to be keywords, so no such macros exist, and the preprocessor can treat both as undefined/zero. --- pcbnew/files.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcbnew/files.cpp b/pcbnew/files.cpp index 88bcf37939..dd7feec491 100644 --- a/pcbnew/files.cpp +++ b/pcbnew/files.cpp @@ -56,8 +56,8 @@ #include -//#define USE_INSTRUMENTATION true -#define USE_INSTRUMENTATION false +//#define USE_INSTRUMENTATION 1 +#define USE_INSTRUMENTATION 0 static const wxChar backupSuffix[] = wxT( "-bak" );