Skip to content

Commit

Permalink
Merge pull request #48 from dxFeed/test/gcc9-gcc11
Browse files Browse the repository at this point in the history
  • Loading branch information
AnatolyKalin committed Apr 15, 2024
2 parents 1494a60 + bef5fa4 commit afcc43e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 8 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,18 @@ jobs:
cores: 4
cc: 'gcc-13'
cxx: 'g++-13'
# - name: ubuntu-22.04-gcc-9
# image: ubuntu-22.04
# os: linux
# cores: 4
# cc: 'gcc-9'
# cxx: 'g++-9'
- name: ubuntu-22.04-gcc-11
image: ubuntu-22.04
os: linux
cores: 4
cc: 'gcc-11'
cxx: 'g++-11'
- name: macos-14-xcode-15
image: macos-14
os: macos
Expand Down
16 changes: 8 additions & 8 deletions include/dxfeed_graal_cpp_api/internal/Conf.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,6 @@
# define DXFCPP_EXPORT_TEMPLATE_DEFINE
#endif

#ifndef DXFCPP_CXX20_CONSTEXPR_STRING
# if defined(__cpp_lib_constexpr_string)
# define DXFCPP_CXX20_CONSTEXPR_STRING constexpr
# else
# define DXFCPP_CXX20_CONSTEXPR_STRING
# endif
#endif

#ifndef DXFCPP_BEGIN_NAMESPACE
# define DXFCPP_BEGIN_NAMESPACE \
namespace dxfcpp { \
Expand Down Expand Up @@ -104,4 +96,12 @@ constexpr bool isMSSTL = false;
constexpr bool isUnknownSTL = true;
#endif

#ifndef DXFCPP_CXX20_CONSTEXPR_STRING
# if defined(__cpp_lib_constexpr_string) && ((defined(__GNUC__) && __GNUC__ >= 12) || (defined(__clang_major__) && __clang_major__ >= 15) || (defined(_MSC_VER) && _MSC_VER >= 1929))
# define DXFCPP_CXX20_CONSTEXPR_STRING constexpr
# else
# define DXFCPP_CXX20_CONSTEXPR_STRING
# endif
#endif

DXFCPP_END_NAMESPACE

0 comments on commit afcc43e

Please sign in to comment.