Index: crypto/third_party/nss/chromium-prtypes.h |
=================================================================== |
--- crypto/third_party/nss/chromium-prtypes.h (revision 0) |
+++ crypto/third_party/nss/chromium-prtypes.h (revision 0) |
@@ -0,0 +1,40 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+// Defines the types and macros from prtypes.h needed by sha512.cc. |
+ |
+#ifndef CRYPTO_THIRD_PARTY_NSS_CHROMIUM_PRTYPES_H_ |
+#define CRYPTO_THIRD_PARTY_NSS_CHROMIUM_PRTYPES_H_ |
+ |
+#include <limits.h> |
+#include <stdint.h> |
+ |
+#include "build/build_config.h" |
+ |
+#if defined(ARCH_CPU_LITTLE_ENDIAN) |
+#define IS_LITTLE_ENDIAN 1 |
+#else |
+#define IS_BIG_ENDIAN 1 |
+#endif |
+ |
+#if LONG_MAX > INT_MAX |
+#define PR_BYTES_PER_LONG 8 |
+#else |
+#define PR_BYTES_PER_LONG 4 |
+#endif |
Ryan Sleevi
2014/03/24 19:14:10
This one needs a bit more justification/explanatio
Mark Mentovai
2014/03/24 20:11:25
Ryan Sleevi wrote:
wtc
2014/03/24 21:55:11
Done.
|
+ |
+#define HAVE_LONG_LONG |
+ |
+#if defined(__linux__) |
+#define LINUX |
+#endif |
+ |
+typedef uint8_t PRUint8; |
+typedef uint32_t PRUint32; |
+ |
+typedef int PRBool; |
+ |
+#define PR_MIN(x,y) ((x)<(y)?(x):(y)) |
+ |
+#endif // CRYPTO_THIRD_PARTY_NSS_CHROMIUM_PRTYPES_H_ |
Property changes on: crypto/third_party/nss/chromium-prtypes.h |
___________________________________________________________________ |
Added: svn:eol-style |
+ LF |