File: strdup_compat.h

package info (click to toggle)
mpich 4.3.1-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 249,548 kB
  • sloc: ansic: 1,299,893; cpp: 74,751; f90: 72,164; javascript: 40,763; perl: 27,970; sh: 18,623; python: 15,956; xml: 14,418; makefile: 9,418; fortran: 8,046; java: 4,553; asm: 324; ruby: 176; lisp: 19; php: 8; sed: 4
file content (16 lines) | stat: -rw-r--r-- 367 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef __strdup_compat_h
#define __strdup_compat_h

/**
 * @file
 * @brief Do not use, json-c internal, may be changed or removed at any time.
 */

#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