2
0
Эх сурвалжийг харах

Fix compilation with GCC 15 (#822)

Zeta 1 долоо хоног өмнө
parent
commit
08ffb09456

+ 1 - 1
libs/heaps/renderdoc.c

@@ -66,7 +66,7 @@ HL_PRIM int HL_NAME(rdoc_get_num_captures)() {
 HL_PRIM bool HL_NAME(rdoc_get_capture)(int index, vbyte *filename, int *pathlength, int64 *timestamp) {
 	if( rdoc_api == NULL )
 		return false;
-	int ret = rdoc_api->GetCapture(index, (char*)filename, pathlength, timestamp);
+	int ret = rdoc_api->GetCapture(index, (char*)filename, (uint32_t*)pathlength, (uint64_t*)timestamp);
 	return ret == 1 ? true : false;
 }
 

+ 1 - 5
libs/mysql/osdef.h

@@ -60,11 +60,7 @@
 #	define TARGET_LITTLE_ENDIAN
 #endif
 
-#ifndef true
-#	define true 1
-#	define false 0
-	typedef int bool;
-#endif
+#include <stdbool.h>
 
 #endif
 /* ************************************************************************ */