Pārlūkot izejas kodu

Fix compilation with GCC 15 (#822)

Zeta 1 nedēļu atpakaļ
vecāks
revīzija
08ffb09456
2 mainītis faili ar 2 papildinājumiem un 6 dzēšanām
  1. 1 1
      libs/heaps/renderdoc.c
  2. 1 5
      libs/mysql/osdef.h

+ 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) {
 HL_PRIM bool HL_NAME(rdoc_get_capture)(int index, vbyte *filename, int *pathlength, int64 *timestamp) {
 	if( rdoc_api == NULL )
 	if( rdoc_api == NULL )
 		return false;
 		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;
 	return ret == 1 ? true : false;
 }
 }
 
 

+ 1 - 5
libs/mysql/osdef.h

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