[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: wget2 | Support linkage from C++ modules (!511)
From: |
@rockdaboot |
Subject: |
Re: wget2 | Support linkage from C++ modules (!511) |
Date: |
Sat, 13 Aug 2022 12:40:13 +0000 |
Tim Rühsen commented:
@michael2e2 Serious question, why not simply
```
diff --git a/include/wget/wget.h b/include/wget/wget.h
index 6b95702ea..c5afefc70 100644
--- a/include/wget/wget.h
+++ b/include/wget/wget.h
@@ -179,6 +179,7 @@
#ifdef __cplusplus
# define WGET_BEGIN_DECLS extern "C" {
# define WGET_END_DECLS }
+# define restrict __restrict
#else
# define WGET_BEGIN_DECLS
# define WGET_END_DECLS
```
?
I am fine to only support recent versions of gcc, clang, g++ and clang++.
Though I wonder if this works with MSVC as well (can't test here).
--
Reply to this email directly or view it on GitLab:
https://gitlab.com/gnuwget/wget2/-/merge_requests/511#note_1060648650
You're receiving this email because of your account on gitlab.com.