Put header includes inside ifdef guard
This commit is contained in:
parent
72ff77347f
commit
04af1a1e98
|
@ -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
|
Loading…
Reference in New Issue