2022-06-30 13:18:08 +02:00
|
|
|
Make the headers always tell the truth about the ABI of the compiled dll's
|
|
|
|
to avoid mysterious linker errors when using wrong C++ version in compiler.
|
|
|
|
This version of the patch is for old systems where the system compiler does not use C++17.
|
|
|
|
For more information, see “notice for package managers” in options.h
|
|
|
|
|
2024-03-04 09:45:52 +01:00
|
|
|
Index: abseil-cpp-20240116.1/absl/base/options.h
|
|
|
|
===================================================================
|
|
|
|
--- abseil-cpp-20240116.1.orig/absl/base/options.h
|
|
|
|
+++ abseil-cpp-20240116.1/absl/base/options.h
|
|
|
|
@@ -94,7 +94,7 @@
|
2022-06-30 13:18:08 +02:00
|
|
|
// User code should not inspect this macro. To check in the preprocessor if
|
|
|
|
// absl::any is a typedef of std::any, use the feature macro ABSL_USES_STD_ANY.
|
|
|
|
|
|
|
|
-#define ABSL_OPTION_USE_STD_ANY 2
|
|
|
|
+#define ABSL_OPTION_USE_STD_ANY 0
|
|
|
|
|
|
|
|
|
|
|
|
// ABSL_OPTION_USE_STD_OPTIONAL
|
2024-03-04 09:45:52 +01:00
|
|
|
@@ -121,7 +121,7 @@
|
2022-06-30 13:18:08 +02:00
|
|
|
// absl::optional is a typedef of std::optional, use the feature macro
|
|
|
|
// ABSL_USES_STD_OPTIONAL.
|
|
|
|
|
|
|
|
-#define ABSL_OPTION_USE_STD_OPTIONAL 2
|
|
|
|
+#define ABSL_OPTION_USE_STD_OPTIONAL 0
|
|
|
|
|
|
|
|
|
|
|
|
// ABSL_OPTION_USE_STD_STRING_VIEW
|
2024-03-04 09:45:52 +01:00
|
|
|
@@ -148,7 +148,7 @@
|
2022-06-30 13:18:08 +02:00
|
|
|
// absl::string_view is a typedef of std::string_view, use the feature macro
|
|
|
|
// ABSL_USES_STD_STRING_VIEW.
|
|
|
|
|
|
|
|
-#define ABSL_OPTION_USE_STD_STRING_VIEW 2
|
|
|
|
+#define ABSL_OPTION_USE_STD_STRING_VIEW 0
|
|
|
|
|
|
|
|
// ABSL_OPTION_USE_STD_VARIANT
|
|
|
|
//
|
2024-03-04 09:45:52 +01:00
|
|
|
@@ -174,7 +174,7 @@
|
2022-06-30 13:18:08 +02:00
|
|
|
// absl::variant is a typedef of std::variant, use the feature macro
|
|
|
|
// ABSL_USES_STD_VARIANT.
|
|
|
|
|
|
|
|
-#define ABSL_OPTION_USE_STD_VARIANT 2
|
|
|
|
+#define ABSL_OPTION_USE_STD_VARIANT 0
|
|
|
|
|
2024-03-04 09:45:52 +01:00
|
|
|
// ABSL_OPTION_USE_STD_ORDERING
|
|
|
|
//
|