diff options
author | tb <> | 2025-08-18 16:00:05 +0000 |
---|---|---|
committer | tb <> | 2025-08-18 16:00:05 +0000 |
commit | 7bb5d534c2961734465b2d9635a531ab902567e4 (patch) | |
tree | ec2679771f56bb6739986465c505b7d770918b9d /src | |
parent | 16242e658a659850b3003406126123e3aa6f9ae9 (diff) | |
download | openbsd-7bb5d534c2961734465b2d9635a531ab902567e4.tar.gz openbsd-7bb5d534c2961734465b2d9635a531ab902567e4.tar.bz2 openbsd-7bb5d534c2961734465b2d9635a531ab902567e4.zip |
Avoid asm("") for MSVC
This allows us to get rid of an ugly patch in portable.
ok jsing
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/hidden/crypto_namespace.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/libcrypto/hidden/crypto_namespace.h b/src/lib/libcrypto/hidden/crypto_namespace.h index 741ad08549..43c8718ed0 100644 --- a/src/lib/libcrypto/hidden/crypto_namespace.h +++ b/src/lib/libcrypto/hidden/crypto_namespace.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: crypto_namespace.h,v 1.4 2024/07/11 21:31:52 miod Exp $ */ | 1 | /* $OpenBSD: crypto_namespace.h,v 1.5 2025/08/18 16:00:05 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2016 Philip Guenther <guenther@openbsd.org> | 3 | * Copyright (c) 2016 Philip Guenther <guenther@openbsd.org> |
4 | * | 4 | * |
@@ -45,7 +45,11 @@ | |||
45 | # define LCRYPTO_UNUSED(x) | 45 | # define LCRYPTO_UNUSED(x) |
46 | # define LCRYPTO_USED(x) | 46 | # define LCRYPTO_USED(x) |
47 | # define LCRYPTO_ALIAS1(pre,x) | 47 | # define LCRYPTO_ALIAS1(pre,x) |
48 | #ifdef _MSC_VER | ||
49 | # define LCRYPTO_ALIAS(x) | ||
50 | #else | ||
48 | # define LCRYPTO_ALIAS(x) asm("") | 51 | # define LCRYPTO_ALIAS(x) asm("") |
52 | #endif /* _MSC_VER */ | ||
49 | #endif | 53 | #endif |
50 | 54 | ||
51 | #endif /* _LIBCRYPTO_CRYPTO_NAMESPACE_H_ */ | 55 | #endif /* _LIBCRYPTO_CRYPTO_NAMESPACE_H_ */ |