fix msys2 build

This commit is contained in:
Stefanos Kornilios Mitsis Poiitidis 2024-12-26 19:24:48 +02:00
parent d523140fa4
commit a17cfdf1a2
2 changed files with 7 additions and 3 deletions

View file

@ -271,7 +271,7 @@ texconv: $(OBJS_TEXCONV) | pvrtex # You'll have to rebuild pvrtex manually if yo
$(CXX) -o $@ $(OBJS_TEXCONV)
%.texconv.o: %.cpp
$(CXX) -std=c++2a -c -O3 -g -MMD -MP -o $@ -I../vendor/koshle $(INCLUDE) -I../vendor/emu -I../vendor/crypto -I../vendor/TriStripper/include $(DEFINES) -DDC_TEXCONV -DDC_SIM -D_INC_WINDOWS $(TEXCONV_FLAGS) $<
$(CXX) -std=c++2a -c -O3 -g -MMD -MP -o $@ -I../vendor/koshle $(INCLUDE) -I../vendor/emu -I../vendor/crypto -I../vendor/TriStripper/include $(DEFINES) -DDC_TEXCONV -DDC_SIM $(TEXCONV_FLAGS) $<
-include $(DEPS)

View file

@ -19,7 +19,6 @@ 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_LONG_MAX__*2ULL+1ULL) == 18446744073709551615ULL) && ((__LONG_MAX__ *2UL+1UL) == 4294967295ULL)
// These are -m32 specific and try to follow KOS rules
@ -41,11 +40,16 @@ typedef volatile long 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 uint32 ptr_t;
#else
#error "Unable to detect basic types"
#endif
#if __SIZEOF_POINTER__ == 4
typedef uint32 ptr_t;
#else
typedef uint64 ptr_t;
#endif
static_assert(sizeof(uint64) == 8, "uint64 size is not 8 bytes");
static_assert(sizeof(uint32) == 4, "uint32 size is not 4 bytes");
static_assert(sizeof(uint16) == 2, "uint16 size is not 2 bytes");