Merge pull request #3206 from cesanta/restrict

Avoid trashing VC++'s own proprietary restrict-like keyword
This commit is contained in:
Sergio R. Caprile authored and GitHub committed 2025-07-15 16:55:52 -03:00
commit db0867f435
1 file changed
+2 -2
+2 -2
View File
@@ -20,8 +20,8 @@
#if defined(_MSC_VER) || defined(__cplusplus) #if defined(_MSC_VER) || defined(__cplusplus)
// add restrict support // add restrict support
#if (defined(_MSC_VER) && _MSC_VER >= 1900) || defined(__clang__) || \ #if ((defined(_MSC_VER) && _MSC_VER >= 1900) && !defined(__cplusplus)) || \
defined(__GNUC__) defined(__clang__) || defined(__GNUC__)
#define restrict __restrict #define restrict __restrict
#else #else
#define restrict #define restrict