strdup_compat.h 367 B

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