mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-10 04:15:39 -04:00
Clang Windows compile fixes
This commit is contained in:
@@ -9,7 +9,11 @@
|
||||
#include "f_pc/f_pc_stdcreate_req.h"
|
||||
#include "f_pc/f_pc_searcher.h"
|
||||
|
||||
#if TARGET_PC
|
||||
enum : u32 {
|
||||
#else
|
||||
enum {
|
||||
#endif
|
||||
fpcM_UNK_PROCESS_ID_e = 0xFFFFFFFE,
|
||||
fpcM_ERROR_PROCESS_ID_e = 0xFFFFFFFF,
|
||||
};
|
||||
|
||||
+5
-2
@@ -83,7 +83,11 @@ extern int __abs(int);
|
||||
void* __memcpy(void*, const void*, int);
|
||||
#endif
|
||||
|
||||
#ifdef _MSVC_LANG
|
||||
#ifndef M_PI
|
||||
#define M_PI 3.14159265358979323846f
|
||||
#endif
|
||||
|
||||
#if defined(_MSVC_LANG) && !defined(__clang__)
|
||||
inline int __builtin_clz(unsigned int v) {
|
||||
int count = 32;
|
||||
while (v != 0) {
|
||||
@@ -94,7 +98,6 @@ inline int __builtin_clz(unsigned int v) {
|
||||
}
|
||||
|
||||
#define COMPOUND_LITERAL(x)
|
||||
#define M_PI 3.14159265358979323846f
|
||||
#else
|
||||
|
||||
#define COMPOUND_LITERAL(x) (x)
|
||||
|
||||
@@ -1467,7 +1467,7 @@ static f32 l_ladderAnmBaseTransY = 102.00054168701172f;
|
||||
|
||||
static dCcD_SrcCyl l_cylSrc = {
|
||||
{
|
||||
{0, {{AT_TYPE_WOLF_ATTACK, 3, 0x1A}, {0xD8FFFDFF, 5}, 0x73}},
|
||||
{0, {{(u32)AT_TYPE_WOLF_ATTACK, 3, 0x1A}, {0xD8FFFDFF, 5}, 0x73}},
|
||||
{dCcD_SE_WOLF_BITE, 3, 1, 0, {1}},
|
||||
{dCcD_SE_NONE, 6, 0, 0, {0}},
|
||||
{0},
|
||||
|
||||
Reference in New Issue
Block a user