mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-12 05:28:43 -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)
|
||||
|
||||
Reference in New Issue
Block a user