File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
sbe-tool/src/main/java/uk/co/real_logic/sbe/generation/cpp Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1722,14 +1722,16 @@ private CharSequence generateFileHeader(
17221722 "#if __cplusplus >= 201703L\n " +
17231723 "# include <string_view>\n " +
17241724 "# define SBE_NODISCARD [[nodiscard]]\n " +
1725- "# define SBE_USE_STRING_VIEW 1\n " +
1725+ "# if !defined(SBE_USE_STRING_VIEW)\n " +
1726+ "# define SBE_USE_STRING_VIEW 1\n " +
1727+ "# endif\n " +
17261728 "#else\n " +
17271729 "# define SBE_NODISCARD\n " +
17281730 "#endif\n \n " +
17291731
17301732 "#if __cplusplus >= 202002L\n " +
1731- "# if defined(SBE_ENABLE_SPAN) \n " +
1732- "# include <span> \n " +
1733+ "# include <span> \n " +
1734+ "# if !defined(SBE_USE_SPAN) \n " +
17331735 "# define SBE_USE_SPAN 1\n " +
17341736 "# endif\n " +
17351737 "#endif\n \n " +
You can’t perform that action at this time.
0 commit comments