summaryrefslogtreecommitdiff
path: root/src/hwfeatures.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2007-12-10 09:17:25 +0000
committerWerner Koch <wk@gnupg.org>2007-12-10 09:17:25 +0000
commita7ce99fa757b84d2157c25d04bd2bb97cd50b747 (patch)
treeb51c69bba7458ecc3cc2f4526ed681e7c55a45e9 /src/hwfeatures.c
parent9ea615f14905e3a764dca0ae1ec73ab6671d844a (diff)
downloadlibgcrypt-a7ce99fa757b84d2157c25d04bd2bb97cd50b747.tar.gz
Preparing 1.4.0.
Diffstat (limited to 'src/hwfeatures.c')
-rw-r--r--src/hwfeatures.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/hwfeatures.c b/src/hwfeatures.c
index 6908c587..200da2c2 100644
--- a/src/hwfeatures.c
+++ b/src/hwfeatures.c
@@ -44,6 +44,9 @@ _gcry_get_hw_features (void)
static void
detect_ia32_gnuc (void)
{
+#ifdef ENABLE_PADLOCK_SUPPORT
+ /* The code here is only useful for the PadLock engine thus we don't
+ build it if that support has been disabled. */
int has_cpuid = 0;
char vendor_id[12+1];
@@ -137,9 +140,8 @@ detect_ia32_gnuc (void)
: "%eax", "%edx", "cc"
);
}
-
+#endif /*ENABLE_PADLOCK_SUPPORT*/
}
-
#endif /* __i386__ && SIZEOF_UNSIGNED_LONG == 4 && __GNUC__ */