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