Bump to 0.17
[platform/upstream/json-c.git] / strdup_compat.h
1 #ifndef __strdup_compat_h
2 #define __strdup_compat_h
3
4 /**
5  * @file
6  * @brief Do not use, json-c internal, may be changed or removed at any time.
7  */
8
9 #if !defined(HAVE_STRDUP) && defined(_MSC_VER)
10 /* MSC has the version as _strdup */
11 #define strdup _strdup
12 #elif !defined(HAVE_STRDUP)
13 #error You do not have strdup on your system.
14 #endif /* HAVE_STRDUP */
15
16 #endif