From da23735ea2cc501206f850625f83e3d9167f7f11 Mon Sep 17 00:00:00 2001 From: weidai Date: Mon, 24 Sep 2007 00:45:59 +0000 Subject: [PATCH] - port x64 assembly code to MASM - improve stack unwindability on x64 for GCC by not modifying RBP/RSP registers in inline assembly --- trunk/c5/pch.h | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/trunk/c5/pch.h b/trunk/c5/pch.h index 7391e5ed..418c3907 100644 --- a/trunk/c5/pch.h +++ b/trunk/c5/pch.h @@ -1,13 +1,21 @@ #ifndef CRYPTOPP_PCH_H #define CRYPTOPP_PCH_H -#include "config.h" +#ifdef CRYPTOPP_GENERATE_X64_MASM + + #include "cpu.h" + +#else + + #include "config.h" + + #ifdef USE_PRECOMPILED_HEADERS + #include "simple.h" + #include "secblock.h" + #include "misc.h" + #include "smartptr.h" + #endif -#ifdef USE_PRECOMPILED_HEADERS -#include "simple.h" -#include "secblock.h" -#include "misc.h" -#include "smartptr.h" #endif #endif