-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathutils_crc.hpp
More file actions
33 lines (27 loc) · 691 Bytes
/
utils_crc.hpp
File metadata and controls
33 lines (27 loc) · 691 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef UTILS_CRC_HPP
#define UTILS_CRC_HPP
#include "utils_compiler.hpp"
// Ignore warnings
HEDLEY_DIAGNOSTIC_PUSH
HEDLEY_DIAGNOSTIC_DISABLE_UNKNOWN_PRAGMAS
#if HEDLEY_MSVC_VERSION_CHECK(15,0,0)
// TODO Ignore MSVC warnings
//#pragma warning(disable:xxxx)
#else
#pragma GCC diagnostic ignored "-Wunknown-pragmas"
#endif
#define CRCPP_BRANCHLESS
#define CRCPP_USE_CPP11
#define CRCPP_USE_NAMESPACE
#include "external/crc/inc/CRC.h"
HEDLEY_DIAGNOSTIC_POP
namespace utils {
/*
* Reference: https://github.com/d-bahr/CRCpp (2020-08-18)
*/
using CRCPP::CRC;
}
#undef CRCPP_BRANCHLESS
#undef CRCPP_USE_CPP11
#undef CRCPP_USE_NAMESPACE
#endif // UTILS_CRC_HPP