From f95d45c36e7c7131747259956821d844e8952e5d Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Thu, 8 Jun 2017 10:53:01 +0000 Subject: nss-3.31 --- nss/cpputil/cpputil.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 nss/cpputil/cpputil.h (limited to 'nss/cpputil/cpputil.h') diff --git a/nss/cpputil/cpputil.h b/nss/cpputil/cpputil.h new file mode 100644 index 0000000..017ce9b --- /dev/null +++ b/nss/cpputil/cpputil.h @@ -0,0 +1,12 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this file, + * You can obtain one at http://mozilla.org/MPL/2.0/. */ + +#ifndef cpputil_h__ +#define cpputil_h__ + +static unsigned char* toUcharPtr(const uint8_t* v) { + return const_cast(static_cast(v)); +} + +#endif // cpputil_h__ -- cgit v1.2.1