mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-27 04:41:23 +00:00
build: more mac fixes
This commit is contained in:
parent
2165c68066
commit
18f51b343b
3 changed files with 7 additions and 1 deletions
|
@ -4,7 +4,9 @@ dist: trusty
|
|||
|
||||
os:
|
||||
- linux
|
||||
env: CFLAGS=-Wno-absolute-value -Werror
|
||||
- osx
|
||||
env: CFLAGS=--Werror
|
||||
|
||||
env:
|
||||
- CFLAGS=-Wno-absolute-value -Wno-unknown-warning-option -Werror
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
#include <stdlib.h>
|
||||
#else
|
||||
#ifndef HAVE_MEMCPY
|
||||
#if !((defined (_WIN32) || defined (_WIN32_WCE)) && !defined (__CYGWIN__))
|
||||
#if !((defined (_WIN32) || defined (_WIN32_WCE)) && !defined (__CYGWIN__)) && !defined (__APPLE__)
|
||||
#define memcpy(d, s, n) bcopy ((s), (d), (n))
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -15,6 +15,8 @@
|
|||
#include <string.h>
|
||||
#include "doomdef.h"
|
||||
|
||||
#if !defined (__APPLE__)
|
||||
|
||||
// Like the OpenBSD version, but it doesn't check for src not being a valid
|
||||
// C string.
|
||||
size_t strlcat(char *dst, const char *src, size_t siz)
|
||||
|
@ -46,3 +48,5 @@ size_t strlcpy(char *dst, const char *src, size_t siz)
|
|||
dst[0] = '\0';
|
||||
return strlcat(dst, src, siz);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue