Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Benjamin <davidben@chromium.org>2015-05-08 19:45:40 +0300
committerAdam Langley <agl@google.com>2015-05-08 21:00:46 +0300
commitdfb67134dc029f0ed6001dfc8c0e2a04e136ffa6 (patch)
tree41344f41783066923734194e17819557e116d94b /crypto/internal.h
parent0d107e183ecadafe7ff207914394b2291758ed82 (diff)
Define CRYPTO_once_t as LONG on Windows.
This is used with a platform API, so it should use the corresponding platform type, saving us the size assert. It's ever defined in an internal header, so we can freely use windows.h and friends. Change-Id: Idc979309436adcf54524c835ddc2c98c3870d2e2 Reviewed-on: https://boringssl-review.googlesource.com/4680 Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'crypto/internal.h')
-rw-r--r--crypto/internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/internal.h b/crypto/internal.h
index 9cb8573c..a4cd3d8a 100644
--- a/crypto/internal.h
+++ b/crypto/internal.h
@@ -336,7 +336,7 @@ static inline int constant_time_select_int(unsigned int mask, int a, int b) {
typedef pthread_once_t CRYPTO_once_t;
#define CRYPTO_ONCE_INIT PTHREAD_ONCE_INIT
#else
-typedef int32_t CRYPTO_once_t;
+typedef LONG CRYPTO_once_t;
#define CRYPTO_ONCE_INIT 0
#endif