foxygit / fake-08-xbox360 Log in
commit 46cdbcf44582ebebdfe6be417cabd5041e9bfc34
Author:     Jon Bell <j.to.the.bell@gmail.com>
AuthorDate: Sun Aug 27 08:05:38 2023 -0600
Commit:     Jon Bell <j.to.the.bell@gmail.com>
CommitDate: Sun Aug 27 08:05:38 2023 -0600

    Move mkdir hack to host.h

    also include cstdint in one more place for GCC13 support
---
 platform/libretro/libretrohosthelpers.h | 5 +----
 source/host.h                           | 5 +++++
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/platform/libretro/libretrohosthelpers.h b/platform/libretro/libretrohosthelpers.h
index b18a872..a19735a 100644
--- a/platform/libretro/libretrohosthelpers.h
+++ b/platform/libretro/libretrohosthelpers.h
@@ -1,9 +1,6 @@
 #include <string.h>
+#include <cstdint>

-#if (defined(_WIN32) || defined(__WIN32__))
-#include <direct.h> /* _mkdir */
-#define mkdir(A, B) _mkdir(A)
-#endif

 void setInputState(
     uint8_t kDown,
diff --git a/source/host.h b/source/host.h
index ae9a2b9..cf75030 100644
--- a/source/host.h
+++ b/source/host.h
@@ -6,6 +6,11 @@
 #include "hostVmShared.h"
 #include "Audio.h"

+#if (defined(_WIN32) || defined(__WIN32__))
+#include <direct.h> /* _mkdir */
+#define mkdir(A, B) _mkdir(A)
+#endif
+

 enum StretchOption {
   PixelPerfect,