summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2004-06-19 11:00:52 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2004-06-19 11:00:52 +0000
commitb4a1655de7edbacb1304fe6fa08574fab34d0b9a (patch)
treef092ca95cbd7b430af62c83d693d1b83d786ef79 /config.h
parent4291b1ca1a471e146fb7e31767423a23f5b0f097 (diff)
downloadcryptopp-b4a1655de7edbacb1304fe6fa08574fab34d0b9a.tar.gz
disable x86 assembly on systems without GNU as 2.10 or later
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@171 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'config.h')
-rw-r--r--config.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/config.h b/config.h
index ee4c701..a0b98e6 100644
--- a/config.h
+++ b/config.h
@@ -181,6 +181,11 @@ NAMESPACE_END
#define CRYPTOPP_UNCAUGHT_EXCEPTION_AVAILABLE
#endif
+// CodeWarrior defines _MSC_VER
+#if !defined(CRYPTOPP_DISABLE_X86ASM) && (defined(_MSC_VER) && !defined(__MWERKS__) && defined(_M_IX86)) || (defined(__GNUC__) && defined(__i386__))
+#define CRYPTOPP_X86ASM_AVAILABLE
+#endif
+
// ***************** determine availability of OS features ********************
#ifndef NO_OS_DEPENDENCE