6
0
forked from pool/pcsc-towitoko
Files
pcsc-towitoko/towitoko-gcc15.patch
Wolfgang Rosenauer 3247580854 - Fix build with gcc15:
* Remove bool typedef as not needed and not used in the code
  * Add towitoko-gcc15.patch

OBS-URL: https://build.opensuse.org/package/show/security:chipcard/pcsc-towitoko?expand=0&rev=11
2025-07-10 05:39:09 +00:00

15 lines
420 B
Diff

Index: towitoko-linux-2.0.8/src/driver/defines.h
===================================================================
--- towitoko-linux-2.0.8.orig/src/driver/defines.h
+++ towitoko-linux-2.0.8/src/driver/defines.h
@@ -48,7 +48,8 @@
typedef unsigned char BYTE;
#ifndef __cplusplus
-typedef int bool;
+/* typedef int bool; */
+#include <stdbool.h>
#endif
typedef unsigned short USHORT;
typedef unsigned char UCHAR;