CMake: Set default visibility to hidden and dllexport on windows

This commit is contained in:
Max Bruckner
2017-03-01 23:16:47 +01:00
parent b44c917be9
commit 6405fd15e3
3 changed files with 18 additions and 0 deletions

View File

@ -23,6 +23,7 @@
/* cJSON */
/* JSON parser in C. */
#pragma GCC visibility push(default)
#include <string.h>
#include <stdio.h>
#include <math.h>
@ -30,6 +31,8 @@
#include <float.h>
#include <limits.h>
#include <ctype.h>
#pragma GCC visibility pop
#include "cJSON.h"
/* define our own boolean type */