summaryrefslogtreecommitdiff
path: root/avx512-0037785/packages/hash/src/sha1.pp
diff options
context:
space:
mode:
Diffstat (limited to 'avx512-0037785/packages/hash/src/sha1.pp')
-rw-r--r--avx512-0037785/packages/hash/src/sha1.pp6
1 files changed, 3 insertions, 3 deletions
diff --git a/avx512-0037785/packages/hash/src/sha1.pp b/avx512-0037785/packages/hash/src/sha1.pp
index 3c8961ea27..ed8917cfd3 100644
--- a/avx512-0037785/packages/hash/src/sha1.pp
+++ b/avx512-0037785/packages/hash/src/sha1.pp
@@ -15,10 +15,10 @@
// Normally, if an optimized version is available for OS/CPU, that will be used
// Define to use existing unoptimized implementation
-{ the assembler implementation does not work on darwin }
-{$ifdef darwin}
+{ the i386 assembler implementation does not work on platforms with a fixed stack }
+{$if DEFINED(CPU386) and (defined(darwin) or defined(linux))}
{$DEFINE SHA1PASCAL}
-{$endif darwin}
+{$endif}
unit sha1;
{$mode objfpc}{$h+}