xref: /3.0.3-GA/platform/include/JSON_checker.h (revision b8af0d5e)
1/* JSON_checker.h */
2
3#ifdef JSON_checker_EXPORTS
4
5#if defined (__SUNPRO_C) && (__SUNPRO_C >= 0x550)
6#define JSON_CHECKER_PUBLIC_API __global
7#elif defined __GNUC__
8#define JSON_CHECKER_PUBLIC_API __attribute__ ((visibility("default")))
9#elif defined(_MSC_VER)
10#define JSON_CHECKER_PUBLIC_API __declspec(dllexport)
11#else
12/* unknown compiler */
13#define JSON_CHECKER_PUBLIC_API
14#endif
15
16#else
17
18#if defined(_MSC_VER)
19#define JSON_CHECKER_PUBLIC_API __declspec(dllimport)
20#else
21#define JSON_CHECKER_PUBLIC_API
22#endif
23
24#endif
25
26#ifdef __cplusplus
27extern "C" {
28#endif
29
30JSON_CHECKER_PUBLIC_API
31int checkUTF8JSON(const unsigned char* data, size_t size);
32
33#ifdef __cplusplus
34}
35#endif
36