Skip to content

Commit

Permalink
Fix minconfig header
Browse files Browse the repository at this point in the history
  • Loading branch information
MikePopoloski committed Jun 22, 2024
1 parent 8f14ca2 commit 0c35831
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
12 changes: 7 additions & 5 deletions boost_unordered.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,17 +59,19 @@
// This is a minimal header that contains only the small set
// config entries needed to use boost::unordered, so that the
// whole boost config lib doesn't need to be pulled in.
#ifdef _MSC_VER
# ifndef BOOST_MSVC
# define BOOST_MSVC _MSC_VER
# endif
#elif defined __clang__
#ifdef __clang__
# ifndef BOOST_CLANG
# define BOOST_CLANG 1
# define BOOST_CLANG_VERSION (__clang_major__ * 10000 + __clang_minor__ * 100 + __clang_patchlevel__ % 100)
# endif
#elif defined(__GNUC__)
# ifndef BOOST_GCC
# define BOOST_GCC (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
# define BOOST_GCC_VERSION BOOST_GCC
# endif
#elif defined(_MSC_VER)
# ifndef BOOST_MSVC
# define BOOST_MSVC _MSC_VER
# endif
#endif

Expand Down
12 changes: 7 additions & 5 deletions include/boost/minconfig.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,19 @@
// This is a minimal header that contains only the small set
// config entries needed to use boost::unordered, so that the
// whole boost config lib doesn't need to be pulled in.
#if defined(_MSC_VER)
# ifndef BOOST_MSVC
# define BOOST_MSVC _MSC_VER
# endif
#elif defined __clang__
#if defined(__clang__)
# ifndef BOOST_CLANG
# define BOOST_CLANG 1
# define BOOST_CLANG_VERSION (__clang_major__ * 10000 + __clang_minor__ * 100 + __clang_patchlevel__ % 100)
# endif
#elif defined(__GNUC__)
# ifndef BOOST_GCC
# define BOOST_GCC (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__)
# define BOOST_GCC_VERSION BOOST_GCC
# endif
#elif defined(_MSC_VER)
# ifndef BOOST_MSVC
# define BOOST_MSVC _MSC_VER
# endif
#endif

Expand Down

0 comments on commit 0c35831

Please sign in to comment.