/* JSON_checker.h */

#ifdef JSON_checker_EXPORTS

#if defined (__SUNPRO_C) && (__SUNPRO_C >= 0x550)
#define JSON_CHECKER_PUBLIC_API __global
#elif defined __GNUC__
#define JSON_CHECKER_PUBLIC_API __attribute__ ((visibility("default")))
#elif defined(_MSC_VER)
#define JSON_CHECKER_PUBLIC_API __declspec(dllexport)
#else
/* unknown compiler */
#define JSON_CHECKER_PUBLIC_API
#endif

#else

#if defined(_MSC_VER)
#define JSON_CHECKER_PUBLIC_API __declspec(dllimport)
#else
#define JSON_CHECKER_PUBLIC_API
#endif

#endif

#ifdef __cplusplus
extern "C" {
#endif

JSON_CHECKER_PUBLIC_API
int checkUTF8JSON(const unsigned char* data, size_t size);

#ifdef __cplusplus
}
#endif

/* JSON_checker.h */

#pragma once

#ifdef JSON_checker_EXPORTS

#if defined (__SUNPRO_C) && (__SUNPRO_C >= 0x550)
#define JSON_CHECKER_PUBLIC_API __global
#elif defined __GNUC__
#define JSON_CHECKER_PUBLIC_API __attribute__ ((visibility("default")))
#elif defined(_MSC_VER)
#define JSON_CHECKER_PUBLIC_API __declspec(dllexport)
#else
/* unknown compiler */
#define JSON_CHECKER_PUBLIC_API
#endif

#else

#if defined(_MSC_VER)
#define JSON_CHECKER_PUBLIC_API __declspec(dllimport)
#else
#define JSON_CHECKER_PUBLIC_API
#endif

#endif

#ifdef __cplusplus
extern "C" {
#endif

JSON_CHECKER_PUBLIC_API
int checkUTF8JSON(const unsigned char* data, size_t size);

#ifdef __cplusplus
}
#endif

Fix 'redundant redeclaration' warning due to missing include guard
Fix 'redundant redeclaration' warning due to missing include guard

Change-Id: Ifa8273d9e95ec4d16e52fec64db2d3ebd50e4e4b
Reviewed-on: http://review.couchbase.org/51690
Tested-by: buildbot <80754af91bfb6d1073585b046fe0a474ce868509@couchbase.com>
Reviewed-by: Trond Norbye <60edd2ef23891a753f231b0c6f161dc634079a93@gmail.com>
