0
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2025-06-25 21:34:50 +00:00
Files
Lakka-LibreELEC/packages/addons/addon-depends/dvb-tools-depends/w_scan/patches/w_scan-0001-Fix-building-with-gcc15.patch
2024-12-11 12:01:46 +00:00

31 lines
989 B
Diff

--- a/tools.h 2017-01-07 09:06:17.000000000 +0000
+++ b/tools.h 2024-12-07 09:14:24.126672083 +0000
@@ -32,10 +32,12 @@
/*******************************************************************************
/* common typedefs && logging.
******************************************************************************/
-#ifndef bool
- typedef int bool;
- #define false 0
- #define true !(false)
+#if defined __STDC__ && defined __STDC_VERSION__ && __STDC_VERSION__ <= 201710L
+ #ifndef bool
+ typedef int bool;
+ #define false 0
+ #define true !(false)
+ #endif
#endif
#define min(a,b) (b<a?b:a)
--- a/emulate.c 2017-01-07 09:06:17.000000000 +0000
+++ b/emulate.c 2024-12-07 09:21:15.216943907 +0000
@@ -199,7 +199,7 @@
}
-void em_lnb(int high_band, uint32_t high_val, uint32_t low_val) {
+void em_lnb(bool high_band, uint32_t high_val, uint32_t low_val) {
em_device.highband = high_band;
em_device.lnb_low = low_val;
em_device.lnb_high = high_val;