Ceetron Result Calculator Framework
CRCBaseTypes.h
1 //##################################################################################################
2 //
3 // Ceetron Result Calculator Framework
4 //
5 // --------------------------------------------------------------------------------------------
6 // Copyright (C) 2019, Ceetron AS
7 //##################################################################################################
8 #pragma once
9 
10 // Brings in size_t and definition of NULL
11 #include <cstddef>
12 
14 typedef int crc_int_t;
15 typedef size_t crc_size_t;
16 typedef double crc_double_t;
17 typedef char crc_char_t;
18 typedef wchar_t crc_wchar_t;
19 
20 const crc_size_t CRC_UNDEFINED_SIZE_T = static_cast<crc_size_t>(-1);
21 
22 // Check if the compiler supports the 'override' keyword
23 #if (defined(_MSC_VER) && (_MSC_VER > 1600)) || (!defined(_MSC_VER) && __cplusplus >= 201103L)
24 #define CRC_SUPPORTS_OVERRIDE_KEYWORD
25 #endif