Skip to content

Commit

Permalink
[core] Do not provide our own strlcpy if glibc >= 2.38
Browse files Browse the repository at this point in the history
Since version 2.38, glibc provides strlcpy and strlcat.
No need to provide our own.

In fact ROOT's definitions clash with glibc's: the latter are
marked `noexcept`.
  • Loading branch information
eguiraud committed Aug 6, 2023
1 parent 6fc4f0f commit 9d89f1c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/foundation/inc/ROOT/RConfig.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@
# define R__USESTHROW
# define R__SEEK64
# endif
# if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 38)
# define HAS_STRLCPY
# endif
#endif

#if defined(linux) && defined(__i386__)
Expand Down

0 comments on commit 9d89f1c

Please sign in to comment.