File: 0006-Fix-cpp-type-of-INI_HANDLER_LINENO.patch

package info (click to toggle)
libinih 61-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 496 kB
  • sloc: ansic: 745; cpp: 228; makefile: 68; sh: 62
file content (27 lines) | stat: -rw-r--r-- 638 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
From 430d1ae8b0f12b4b8ca60ad6130917d1ab61e2cc Mon Sep 17 00:00:00 2001
From: yangfl <yangfl@users.noreply.github.com>
Date: Tue, 9 Feb 2021 19:44:21 +0800
Subject: [PATCH 6/8] Fix cpp type of INI_HANDLER_LINENO

---
 cpp/INIReader.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/cpp/INIReader.cpp b/cpp/INIReader.cpp
index 9818a03..3f352ae 100644
--- a/cpp/INIReader.cpp
+++ b/cpp/INIReader.cpp
@@ -12,6 +12,10 @@
 #include <algorithm>
 #include <cctype>
 #include <cstdlib>
+#ifdef INI_HANDLER_LINENO
+#undef INI_HANDLER_LINENO
+#endif
+#define INI_HANDLER_LINENO 0
 #include "../ini.h"
 #include "INIReader.h"
 
-- 
2.50.1