mirror of
https://github.com/wownero/wownero.git
synced 2026-11-14 20:33:54 +01:00
crypto: reduce crypto.h header weight
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2017-2024, The Monero Project
|
||||
// Copyright (c) 2017-2026, The Monero Project
|
||||
//
|
||||
// All rights reserved.
|
||||
//
|
||||
@@ -30,9 +30,10 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
#include <array>
|
||||
#include <cstddef>
|
||||
#include <type_traits>
|
||||
|
||||
extern "C" {
|
||||
#endif
|
||||
@@ -73,9 +74,6 @@ namespace tools {
|
||||
|
||||
template<typename T>
|
||||
const T& unwrap(scrubbed<T> const& src) { return src; }
|
||||
|
||||
template <class T, size_t N>
|
||||
using scrubbed_arr = scrubbed<std::array<T, N>>;
|
||||
} // namespace tools
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright (c) 2018-2024, The Monero Project
|
||||
// Copyright (c) 2018-2026, The Monero Project
|
||||
|
||||
//
|
||||
// All rights reserved.
|
||||
@@ -29,8 +29,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <map>
|
||||
#include <boost/thread/mutex.hpp>
|
||||
#include <cstddef>
|
||||
|
||||
namespace epee
|
||||
{
|
||||
@@ -51,8 +50,6 @@ namespace epee
|
||||
static size_t page_size;
|
||||
static size_t num_locked_objects;
|
||||
|
||||
static boost::mutex &mutex();
|
||||
static std::map<size_t, unsigned int> &map();
|
||||
static void lock_page(size_t page);
|
||||
static void unlock_page(size_t page);
|
||||
|
||||
@@ -82,7 +79,4 @@ namespace epee
|
||||
|
||||
template<typename T>
|
||||
const T& unwrap(mlocked<T> const& src) { return src; }
|
||||
|
||||
template <class T, size_t N>
|
||||
using mlocked_arr = mlocked<std::array<T, N>>;
|
||||
}
|
||||
|
||||
@@ -28,6 +28,9 @@
|
||||
#ifndef _PROFILE_TOOLS_H_
|
||||
#define _PROFILE_TOOLS_H_
|
||||
|
||||
#include <boost/date_time/posix_time/posix_time_types.hpp>
|
||||
|
||||
#include "misc_log_ex.h"
|
||||
#include "time_helper.h"
|
||||
|
||||
namespace epee
|
||||
|
||||
Reference in New Issue
Block a user