Put header includes inside ifdef guard

This commit is contained in:
libretroadmin 2025-07-12 22:07:44 +02:00
parent 72ff77347f
commit 04af1a1e98
1 changed files with 4 additions and 4 deletions

View File

@ -20,14 +20,14 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
/* Implementation of strlcpy()/strlcat() based on OpenBSD. */
#ifndef __MACH__
#include <stdlib.h>
#include <ctype.h>
#include <compat/strl.h>
/* Implementation of strlcpy()/strlcat() based on OpenBSD. */
#ifndef __MACH__
size_t strlcpy(char *s, const char *source, size_t len)
{
size_t _len = len;
@ -52,4 +52,4 @@ size_t strlcat(char *s, const char *source, size_t len)
len -= _len;
return _len + strlcpy(s, source, len);
}
#endif
#endif