mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-11 16:40:17 +00:00
Merge pull request #3206 from cesanta/restrict
Avoid trashing VC++'s own proprietary restrict-like keyword
This commit is contained in:
1 file changed
+2
-2
+2
-2
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user