mirror of
https://github.com/TASVideos/desmume
synced 2024-07-05 09:18:50 +00:00
libretro-common: get strlcpy declarations on macOS
Defining _XOPEN_SOURCE here disabled the BSD extended string functions on macOS. Define _DARWIN_C_SOURCE instead on that platform.
This commit is contained in:
parent
90d0abdae0
commit
6f64f9a3bc
|
@ -20,7 +20,11 @@
|
||||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef __MACH__
|
||||||
|
#define _DARWIN_C_SOURCE /* As below, plus strl* functions */
|
||||||
|
#else
|
||||||
#define _XOPEN_SOURCE 500 /* For strdup, realpath */
|
#define _XOPEN_SOURCE 500 /* For strdup, realpath */
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <boolean.h>
|
#include <boolean.h>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user