Merge branch 'falco/dreamsdk4_fixes' into 'main'
Some checks failed
re3 conan+cmake / build-cmake (openal, glfw, macos-latest, gl3) (push) Has been cancelled
re3 conan+cmake / build-cmake (openal, glfw, ubuntu-18.04, gl3) (push) Has been cancelled
re3 conan+cmake / build-cmake (openal, glfw, windows-latest, gl3) (push) Has been cancelled
re3 conan+cmake / build-cmake (openal, windows-latest, d3d9) (push) Has been cancelled
re3 cmake devkitA64 (Nintendo Switch) / build-nintendo-switch (push) Has been cancelled
re3 premake amd64 / build (Debug, win-amd64-librw_d3d9-oal) (push) Has been cancelled
re3 premake amd64 / build (Debug, win-amd64-librw_gl3_glfw-oal) (push) Has been cancelled
re3 premake amd64 / build (Release, win-amd64-librw_d3d9-oal) (push) Has been cancelled
re3 premake amd64 / build (Release, win-amd64-librw_gl3_glfw-oal) (push) Has been cancelled
re3 premake x86 / build (Debug, win-x86-librw_d3d9-mss) (push) Has been cancelled
re3 premake x86 / build (Debug, win-x86-librw_d3d9-oal) (push) Has been cancelled
re3 premake x86 / build (Debug, win-x86-librw_gl3_glfw-mss) (push) Has been cancelled
re3 premake x86 / build (Debug, win-x86-librw_gl3_glfw-oal) (push) Has been cancelled
re3 premake x86 / build (Release, win-x86-librw_d3d9-mss) (push) Has been cancelled
re3 premake x86 / build (Release, win-x86-librw_d3d9-oal) (push) Has been cancelled
re3 premake x86 / build (Release, win-x86-librw_gl3_glfw-mss) (push) Has been cancelled
re3 premake x86 / build (Release, win-x86-librw_gl3_glfw-oal) (push) Has been cancelled
re3 premake x86 / build (Vanilla, win-x86-librw_d3d9-mss) (push) Has been cancelled
re3 premake x86 / build (Vanilla, win-x86-librw_d3d9-oal) (push) Has been cancelled
re3 premake x86 / build (Vanilla, win-x86-librw_gl3_glfw-mss) (push) Has been cancelled
re3 premake x86 / build (Vanilla, win-x86-librw_gl3_glfw-oal) (push) Has been cancelled

Fixed builds for DreamSDK4.

See merge request skmp/dca3-game!102
This commit is contained in:
Stefanos Kornilios Mitsis Poiitidis
2025-10-02 17:30:23 +00:00
4 changed files with 30 additions and 3 deletions

View File

@@ -13,7 +13,9 @@ enum eWinVersion
OS_WINXP,
};
#ifdef _WIN32
#ifdef _WIN64
#include <windows.h>
#elif defined(_WIN32)
// As long as WITHWINDOWS isn't defined / <Windows.h> isn't included, we only need type definitions so let's include <IntSafe.h>.
// NOTE: It's perfectly fine to include <Windows.h> here, but it can increase build size and time in *some* conditions, and maybe substantially in future if we'll use crossplatform.h more.

View File

@@ -17,7 +17,7 @@ enum eWinVersion
char *_strdate(char *buf);
#endif
#ifdef _WIN32
#if defined(_WIN32) || defined(_WIN64)
// As long as WITHWINDOWS isn't defined / <Windows.h> isn't included, we only need type definitions so let's include <IntSafe.h>.
// NOTE: It's perfectly fine to include <Windows.h> here, but it can increase build size and time in *some* conditions, and maybe substantially in future if we'll use crossplatform.h more.

View File

@@ -1,6 +1,27 @@
#pragma once
#if ( (__LONG_MAX__ *2UL+1UL) == 18446744073709551615ULL) && ((__INT_MAX__ *2U +1U) == 4294967295ULL)
#if defined(_WIN64) && _WIN64 == 1
typedef unsigned long long uint64; /**< \brief 64-bit unsigned integer */
typedef unsigned int uint32; /**< \brief 32-bit unsigned integer */
typedef unsigned short uint16; /**< \brief 16-bit unsigned integer */
typedef unsigned char uint8; /**< \brief 8-bit unsigned integer */
typedef long long int64; /**< \brief 64-bit signed integer */
typedef int int32; /**< \brief 32-bit signed integer */
typedef short int16; /**< \brief 16-bit signed integer */
typedef char int8; /**< \brief 8-bit signed integer */
typedef volatile unsigned long long vuint64; /**< \brief 64-bit unsigned integer */
typedef volatile unsigned int vuint32; /**< \brief 32-bit unsigned integer */
typedef volatile unsigned short vuint16; /**< \brief 16-bit unsigned integer */
typedef volatile unsigned char vuint8; /**< \brief 8-bit unsigned integer */
typedef volatile long long vint64; /**< \brief 64-bit signed integer */
typedef volatile int vint32; /**< \brief 32-bit signed integer */
typedef volatile short vint16; /**< \brief 16-bit signed integer */
typedef volatile char vint8; /**< \brief 8-bit signed integer */
typedef uint64 ptr_t;
#define INT32_IS_INT
#elif (( (__LONG_MAX__ *2UL+1UL) == 18446744073709551615ULL) && ((__INT_MAX__ *2U +1U) == 4294967295ULL))
typedef unsigned long uint64; /**< \brief 64-bit unsigned integer */
typedef unsigned int uint32; /**< \brief 32-bit unsigned integer */
typedef unsigned short uint16; /**< \brief 16-bit unsigned integer */

View File

@@ -4527,6 +4527,10 @@ imageFindRasterFormat(Image *img, int32 type,
#if defined(_WIN32) || defined(_WIN64)
#include <windows.h> // For QueryPerformanceCounter and GetCurrentThreadId
#ifdef _WIN64
#include <profileapi.h>
#include <processthreadsapi.h>
#endif
#elif defined(__APPLE__)
#include <mach/mach_time.h> // For mach_absolute_time
#include <pthread.h>