Skip to content

Commit

Permalink
Change compiler version handling
Browse files Browse the repository at this point in the history
  • Loading branch information
martinmoene committed Sep 25, 2015
1 parent 6fd526c commit 2c43a2e
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions lest_cpp03.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,20 @@
# endif
#endif

#if ( __cplusplus >= 201103L )
# define lest_CPP11_OR_GREATER
#if defined(_MSC_VER)
# define lest_COMPILER_MSVC_VERSION ((_MSC_VER - 600 ) / 100)
#else
# define lest_COMPILER_MSVC_VERSION 0
#endif

#if defined( _MSC_VER ) && ( 1200 <= _MSC_VER && _MSC_VER < 1300 )
#if lest_COMPILER_MSVC_VERSION == 6
# define lest_COMPILER_IS_MSVC6
#endif

#if ( __cplusplus >= 201103L ) || lest_COMPILER_MSVC_VERSION >= 12
# define lest_CPP11_OR_GREATER
#endif

#ifdef lest_CPP11_OR_GREATER

# include <cstdint>
Expand Down

0 comments on commit 2c43a2e

Please sign in to comment.