From de02440a664febe43769210f884ace19a31aaa48 Mon Sep 17 00:00:00 2001 From: simon-p-r Date: Mon, 29 Jan 2018 16:56:24 +0000 Subject: [PATCH] fix to compile on visual studio 2015 --- pipe.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pipe.h b/pipe.h index fc487ef..5336ee2 100644 --- a/pipe.h +++ b/pipe.h @@ -36,12 +36,15 @@ extern "C" { #define MALLOC_LIKE __attribute__((malloc)) #define NO_NULL_POINTERS __attribute__((nonnull)) #define WARN_UNUSED_RESULT __attribute__((warn_unused_result)) -#else +#elif _WIN32 /* Feel free to fill in results for more compilers =) */ #define PURE #define MALLOC_LIKE #define NO_NULL_POINTERS -#define WARN_UNUSED_RESULT +#define WARN_UNUSED_RESULT +#if (_MSC_VER == 1900) + #define restrict __restrict +#endif #endif /*