Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(286)

Unified Diff: crypto/third_party/nss/chromium-prtypes.h

Issue 209343003: Remove prtypes.h and prcpucfg*.h from base/third_party/nspr. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Move chromium-blapi*h to NaCl HMAC sources Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698