Skip to content

Commit b80d914

Browse files
committed
Update magic to include the header defining CPPFunction
1 parent 840d249 commit b80d914

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

dependency_support/com_opencircuitdesign_magic/com_opencircuitdesign_magic.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,6 @@ def com_opencircuitdesign_magic():
3030
patches = [
3131
Label("@rules_hdl//dependency_support/com_opencircuitdesign_magic:magic_wrapper.patch"),
3232
Label("@rules_hdl//dependency_support/com_opencircuitdesign_magic:use_bash.patch"),
33+
Label("@rules_hdl//dependency_support/com_opencircuitdesign_magic:rltypedefs.patch"),
3334
],
3435
)
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
--- textio/txMain.c 2020-08-11 22:50:26.000000000 +0200
2+
+++ textio/txMain.c 2025-07-15 10:15:29.672949422 +0200
3+
@@ -43,12 +43,15 @@
4+
global bool TxStdoutIsatty;
5+
6+
#ifdef USE_READLINE
7+
+#define WANT_OBSOLETE_TYPEDEFS 1
8+
#ifdef HAVE_READLINE
9+
#include <readline/readline.h>
10+
#include <readline/history.h>
11+
+#include <readline/rltypedefs.h>
12+
#else
13+
#include "readline/readline.h"
14+
#include "readline/history.h"
15+
+#include "readline/rltypedefs.h"
16+
#endif
17+
18+
int TxPrefix(void);

0 commit comments

Comments
 (0)