libretro: Fix building on Mach-based operating systems, otherwise known as Mac OS X and modern macOS (regression from commit 90d0abd). Based on PR #793.

This commit is contained in:
rogerman 2024-06-07 16:33:13 -07:00
parent ffb8666a8f
commit 779606ec2f
1 changed files with 1 additions and 2 deletions

View File

@ -20,8 +20,6 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
#define _XOPEN_SOURCE 500 /* For strdup, realpath */
#include <stdlib.h>
#include <boolean.h>
#include <string.h>
@ -33,6 +31,7 @@
#include <file/file_path.h>
#ifndef __MACH__
#define _XOPEN_SOURCE 500 /* For strdup, realpath */
#include <compat/strl.h>
#include <compat/posix_string.h>
#endif