File: stormlib.patch

package info (click to toggle)
smpq 1.6-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 292 kB
  • sloc: ansic: 1,491; cpp: 1,411; xml: 16; makefile: 5
file content (28 lines) | stat: -rw-r--r-- 653 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
commit f8da58f1b8e9486180d5d849bc2100a90ce04b0a
Author: Pali Rohár <pali.rohar@gmail.com>
Date:   Tue Oct 28 13:13:42 2025 +0100
Description: Fix compilation with StormLib > 9.30

--- a/common.h
+++ b/common.h
@@ -250,3 +250,7 @@ static inline void fromArchivePath(char
 #endif
 
 }
+
+#if !defined(WIN32) && !defined(_MSC_VER) && STORMLIB_VERSION > 0x091E
+#define GetLastError SErrGetLastError
+#endif
--- a/kio_smpq.cpp
+++ b/kio_smpq.cpp
@@ -36,6 +36,10 @@
 
 #include <StormLib.h>
 
+#if !defined(WIN32) && !defined(_MSC_VER) && STORMLIB_VERSION > 0x091E
+#define GetLastError SErrGetLastError
+#endif
+
 #include "kio_smpq.h"
 
 #ifdef Q_OS_UNIX