diff --git a/libretro-common/compat/compat_strl.c b/libretro-common/compat/compat_strl.c index d11a8c6699..cdf7c49cbe 100644 --- a/libretro-common/compat/compat_strl.c +++ b/libretro-common/compat/compat_strl.c @@ -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 #include #include -/* 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 \ No newline at end of file