Only build the body of e_padlock when there are lower level routines
[openssl.git] / engines / e_padlock.c
index 77cebe3de6f8d94848770f916de808d62f6caab4..b86f16550448130c2350dcdee7322872165bf124 100644 (file)
  */
 
 #  undef COMPILE_HW_PADLOCK
  */
 
 #  undef COMPILE_HW_PADLOCK
-#  if !defined(I386_ONLY) && !defined(OPENSSL_NO_ASM)
-#   if    defined(__i386__) || defined(__i386) ||    \
-        defined(__x86_64__) || defined(__x86_64) || \
-        defined(_M_IX86) || defined(_M_AMD64) || defined(_M_X64)
-#    define COMPILE_HW_PADLOCK
-#    ifdef OPENSSL_NO_DYNAMIC_ENGINE
+#  if !defined(I386_ONLY) && defined(PADLOCK_ASM)
+#   define COMPILE_HW_PADLOCK
+#   ifdef OPENSSL_NO_DYNAMIC_ENGINE
 static ENGINE *ENGINE_padlock(void);
 static ENGINE *ENGINE_padlock(void);
-#    endif
 #   endif
 #  endif
 
 #   endif
 #  endif