forked from github/server
*** empty log message ***
This commit is contained in:
parent
25685c79af
commit
9382bc9e3a
11
src/config.h
11
src/config.h
|
@ -68,10 +68,6 @@
|
||||||
** Architecture Dependent **
|
** Architecture Dependent **
|
||||||
**** ****/
|
**** ****/
|
||||||
|
|
||||||
#if _MSC_VER
|
|
||||||
# define STRNCPY_HAS_ZEROTERMINATION
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* für solaris: */
|
/* für solaris: */
|
||||||
#ifdef SOLARIS
|
#ifdef SOLARIS
|
||||||
# define _SYS_PROCSET_H
|
# define _SYS_PROCSET_H
|
||||||
|
@ -241,9 +237,6 @@ extern char * strdup(const char *s);
|
||||||
# define true ((boolean)!false)
|
# define true ((boolean)!false)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef STRNCPY_HAS_ZEROTERMINATION
|
#define strnzcpy(dst, src, len) (strncpy(dst, src, len), len?dst[len]=0:0, dst)
|
||||||
# define strnzcpy(dst, src, len) strncpy(dst, src, len)
|
|
||||||
#else
|
|
||||||
# define strnzcpy(dst, src, len) (strncpy(dst, src, len), len?dst[len]=0:0, dst)
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue