From 779606ec2fbaf87de65922286efb91e5b2e16f74 Mon Sep 17 00:00:00 2001 From: rogerman Date: Fri, 7 Jun 2024 16:33:13 -0700 Subject: [PATCH] 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. --- desmume/src/libretro-common/file/file_path.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/desmume/src/libretro-common/file/file_path.c b/desmume/src/libretro-common/file/file_path.c index f6d043d05..8836538b7 100644 --- a/desmume/src/libretro-common/file/file_path.c +++ b/desmume/src/libretro-common/file/file_path.c @@ -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 #include #include @@ -33,6 +31,7 @@ #include #ifndef __MACH__ +#define _XOPEN_SOURCE 500 /* For strdup, realpath */ #include #include #endif