File: cplusplus-support.patch

package info (click to toggle)
slang2 2.3.3-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 11,480 kB
  • sloc: ansic: 101,756; sh: 3,435; makefile: 1,046; pascal: 440
file content (28 lines) | stat: -rw-r--r-- 443 bytes parent folder | download | duplicates (2)
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
Description: Allow C++ compilation
Author: Gise Vanem <gisle.vanem@gmail.com>
Last-Updated: 2022-04-25
Forwarded: no

--- a/src/slcurses.h
+++ b/src/slcurses.h
@@ -29,6 +29,10 @@
 extern "C" {
 #endif
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+  
 /* This is a temporary hack until lynx is fixed to not include this file. */
 #ifndef LYCURSES_H
 
@@ -395,5 +399,9 @@
 #endif
 
 #ifdef __cplusplus
+}
+#endif
+
+#ifdef __cplusplus
 }
 #endif