[Top][All Lists]

[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
 #      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: 
You're receiving this email because of your account on gitlab.com.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]