Avoid trashing VC++'s own propropietary restrict-like keyword

This commit is contained in:
Sergio R. Caprile committed 2025-07-15 16:47:06 -03:00
1 parent 3aafc073d8
commit 7234121835
1 file changed
+2 -2
+2 -2
View File
@@ -20,8 +20,8 @@
#if defined(_MSC_VER) || defined(__cplusplus)
// add restrict support
#if (defined(_MSC_VER) && _MSC_VER >= 1900) || defined(__clang__) || \
defined(__GNUC__)
#if ((defined(_MSC_VER) && _MSC_VER >= 1900) && !defined(__cplusplus)) || \
defined(__clang__) || defined(__GNUC__)
#define restrict __restrict
#else
#define restrict