drop NINJA_BOOTSTRAP define
authorEvan Martin <martine@danga.com>
Tue, 18 Nov 2014 16:04:23 +0000 (08:04 -0800)
committerEvan Martin <martine@danga.com>
Tue, 18 Nov 2014 17:05:58 +0000 (09:05 -0800)
src/minidump-win32.cc
src/ninja.cc

index c79ec0e..c611919 100644 (file)
 // See the License for the specific language governing permissions and
 // limitations under the License.
 
-#ifndef NINJA_BOOTSTRAP
+#ifdef _MSC_VER
 
 #include <windows.h>
 #include <DbgHelp.h>
 
-
 #include "util.h"
 
 typedef BOOL (WINAPI *MiniDumpWriteDumpFunc) (
@@ -85,4 +84,4 @@ void CreateWin32MiniDump(_EXCEPTION_POINTERS* pep) {
   Warning("minidump created: %s", temp_file);
 }
 
-#endif  // NINJA_BOOTSTRAP
+#endif  // _MSC_VER
index 847000a..2c890c2 100644 (file)
@@ -1111,7 +1111,7 @@ int real_main(int argc, char** argv) {
 }  // anonymous namespace
 
 int main(int argc, char** argv) {
-#if !defined(NINJA_BOOTSTRAP) && defined(_MSC_VER)
+#if defined(_MSC_VER)
   // Set a handler to catch crashes not caught by the __try..__except
   // block (e.g. an exception in a stack-unwind-block).
   set_terminate(TerminateHandler);