From 217ab0261248a0b698f8201987169266f71a8373 Mon Sep 17 00:00:00 2001 From: Max Bruckner Date: Sat, 17 Jun 2017 14:23:12 +0200 Subject: [PATCH] cJSON_Utils: Guard gcc pragmas with a check for __GCC__ --- cJSON_Utils.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cJSON_Utils.c b/cJSON_Utils.c index e7bf802..2baa492 100644 --- a/cJSON_Utils.c +++ b/cJSON_Utils.c @@ -24,13 +24,18 @@ #if !defined(_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) #define _CRT_SECURE_NO_DEPRECATE #endif + +#ifdef __GNUCC__ #pragma GCC visibility push(default) +#endif #include #include #include #include #include +#ifdef __GNUCC__ #pragma GCC visibility pop +#endif #include "cJSON_Utils.h"