From 4d2251c3e467605f6b46290e628943b94856e3e6 Mon Sep 17 00:00:00 2001 From: Esun Kim Date: Tue, 4 Aug 2020 11:49:56 -0700 Subject: [PATCH] Add UPB_NORETURN for MSC --- upb/port_def.inc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/upb/port_def.inc b/upb/port_def.inc index 2c144dc066..7371b6d456 100644 --- a/upb/port_def.inc +++ b/upb/port_def.inc @@ -79,6 +79,10 @@ #define UPB_FORCEINLINE __inline__ __attribute__((always_inline)) #define UPB_NOINLINE __attribute__((noinline)) #define UPB_NORETURN __attribute__((__noreturn__)) +#elif defined(_MSC_VER) +#define UPB_NOINLINE +#define UPB_FORCEINLINE +#define UPB_NORETURN __declspec(noreturn) #else /* !defined(__GNUC__) */ #define UPB_FORCEINLINE #define UPB_NOINLINE