Skip to content

Conversation

@zfields
Copy link
Contributor

@zfields zfields commented Jan 12, 2026

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to improve the portability of the strlcpy and strlcat functions by adding conditional compilation guards (HAVE_STRLCPY and HAVE_STRLCAT) to prevent redeclaration on platforms where these functions are already available. The changes also attempt to add C++-specific declarations with noexcept specifiers for better exception safety semantics.

Changes:

  • Added #ifndef HAVE_STRLCPY / #endif guards around strlcpy declaration
  • Added #ifndef HAVE_STRLCAT / #endif guards around strlcat declaration
  • Added C++ conditional declarations with noexcept specifiers for both functions

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

@Bucknalla Bucknalla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zfields zfields merged commit f001061 into master Jan 13, 2026
11 of 12 checks passed
@zfields zfields deleted the zak-strl branch January 13, 2026 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants