cJSON_Utils: Guard gcc pragmas with a check for __GCC__

This commit is contained in:
Max Bruckner 2017-06-17 14:23:12 +02:00
parent e872d40223
commit 217ab02612

View File

@ -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 <ctype.h>
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <limits.h>
#ifdef __GNUCC__
#pragma GCC visibility pop
#endif
#include "cJSON_Utils.h"