mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-06-12 08:08:56 +02:00
otherwise build failed with: > error: 'rpl_strtol' is not a member of 'std' Signed-off-by: Z. Liu <zhixu.liu@gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/42398 Closes: https://github.com/gentoo/gentoo/pull/42398 Signed-off-by: Sam James <sam@gentoo.org>
13 lines
909 B
Diff
13 lines
909 B
Diff
diff --git a/lib/stdlib.in.h b/lib/stdlib.in.h
|
|
index ed00a43..f37ff84 100644
|
|
--- a/lib/stdlib.in.h
|
|
+++ b/lib/stdlib.in.h
|
|
@@ -119,7 +119,7 @@ struct random_data
|
|
# include <unistd.h>
|
|
#endif
|
|
|
|
-#if ((@GNULIB_STRTOL@ && @REPLACE_STRTOL@) || (@GNULIB_STRTOLL@ && @REPLACE_STRTOLL@) || (@GNULIB_STRTOUL@ && @REPLACE_STRTOUL@) || (@GNULIB_STRTOULL@ && @REPLACE_STRTOULL@)) && defined __cplusplus && !defined GNULIB_NAMESPACE && defined __GNUG__ && !defined __clang__
|
|
+#if ((@GNULIB_STRTOL@ && @REPLACE_STRTOL@) || (@GNULIB_STRTOLL@ && @REPLACE_STRTOLL@) || (@GNULIB_STRTOUL@ && @REPLACE_STRTOUL@) || (@GNULIB_STRTOULL@ && @REPLACE_STRTOULL@)) && defined __cplusplus && !defined GNULIB_NAMESPACE && defined __GNUG__
|
|
/* When strtol, strtoll, strtoul, or strtoull is going to be defined as a macro
|
|
below, this may cause compilation errors later in the libstdc++ header files
|
|
(that are part of GCC), such as:
|