From 21a609bd76f4ff02d50456ee6b431d171354ea34 Mon Sep 17 00:00:00 2001 From: Arkady Shapkin Date: Wed, 9 Jan 2019 23:36:31 +0300 Subject: [PATCH] gcc: Fix compilation with -fno-operator-names (#1009) --- Release/include/cpprest/details/cpprest_compat.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Release/include/cpprest/details/cpprest_compat.h b/Release/include/cpprest/details/cpprest_compat.h index 57f277aaf0..c671ce2fe5 100644 --- a/Release/include/cpprest/details/cpprest_compat.h +++ b/Release/include/cpprest/details/cpprest_compat.h @@ -48,8 +48,8 @@ // No SAL on non Windows platforms #include "cpprest/details/nosal.h" -#if not defined __cdecl -#if defined cdecl +#if !defined(__cdecl) +#if defined(cdecl) #define __cdecl __attribute__((cdecl)) #else // ^^^ defined cdecl ^^^ // vvv !defined cdecl vvv #define __cdecl