Skip to content

Commit

Permalink
libretro: Fix building on Mach-based operating systems, otherwise kno…
Browse files Browse the repository at this point in the history
…wn as Mac OS X and modern macOS (regression from commit 90d0abd). Based on PR #793.
  • Loading branch information
rogerman committed Jun 7, 2024
1 parent ffb8666 commit 779606e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions desmume/src/libretro-common/file/file_path.c
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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
Expand Down

0 comments on commit 779606e

Please sign in to comment.