1
0
mirror of https://github.com/TASVideos/desmume synced 2024-07-03 00:08:51 +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:
Adam Sampson 2024-05-13 14:43:58 +01:00
parent 90d0abdae0
commit 6f64f9a3bc

View File

@ -20,7 +20,11 @@
* 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 */
#endif
#include <stdlib.h>
#include <boolean.h>