mirror of
https://github.com/json-c/json-c.git
synced 2026-03-13 18:19:06 +08:00
strdup_compat.h: re-spin this compat header ; use math_compat.h as template
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
This commit is contained in:
11
strdup_compat.h
Normal file
11
strdup_compat.h
Normal file
@@ -0,0 +1,11 @@
|
||||
#ifndef __strdup_compat_h
|
||||
#define __strdup_compat_h
|
||||
|
||||
#if !defined(HAVE_STRDUP) && defined(_MSC_VER)
|
||||
/* MSC has the version as _strdup */
|
||||
# define strdup _strdup
|
||||
#elif !defined(HAVE_STRDUP)
|
||||
# error You do not have strdup on your system.
|
||||
#endif /* HAVE_STRDUP */
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user