Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gcc9 gcc11 #48

Merged
merged 5 commits into from
Apr 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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