Skip to content

Commit

Permalink
windows: fix pgba compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
Cpasjuste committed Sep 29, 2023
1 parent 3fbd447 commit b3ee63c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/cores/pgba/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ elseif (PLATFORM_SWITCH)
list(APPEND PGBA_CFLAGS)
elseif (PLATFORM_3DS)
elseif (PLATFORM_LINUX OR PLATFORM_WINDOWS)
if (PLATFORM_WINDOWS)
list(APPEND PGBA_INC ${CMAKE_CURRENT_SOURCE_DIR}/sources/windows) # for vfs-dirent.c (mkdir)
endif ()
#####################
# SDL2 PLATFORM
#####################
Expand Down
13 changes: 13 additions & 0 deletions src/cores/pgba/sources/windows/mgba-util/vfs.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//
// Created by cpasjuste on 29/09/2023.
//

#ifndef PEMU_VFS_H
#define PEMU_VFS_H

#include <io.h>
#undef mkdir
#define mkdir(x, y) mkdir(x)
#include "../../../../../../external/cores/mgba/include/mgba-util/vfs.h"

#endif //PEMU_VFS_H

0 comments on commit b3ee63c

Please sign in to comment.