Time Shield Library
C++ library for working with time
Loading...
Searching...
No Matches
config.hpp
Go to the documentation of this file.
1#pragma once
6#ifndef _TIME_SHIELD_CONFIG_HPP_INCLUDED
7#define _TIME_SHIELD_CONFIG_HPP_INCLUDED
8
9// Check if the C++ version is at least C++17
10#if __cplusplus >= 201703L
11# define TIME_SHIELD_CPP17
12#endif
13
14// Check if the C++ version is C++11 or lower
15#if __cplusplus <= 201103L
16# define TIME_SHIELD_CONSTEXPR
17# define TIME_SHIELD_CPP11
18#else
19# define TIME_SHIELD_CONSTEXPR constexpr
20#endif
21
22#endif // _TIME_SHIELD_CONFIG_HPP_INCLUDED