first commit
This commit is contained in:
28
tools/vispatch-1.4.6/source/strl_fn.h
Normal file
28
tools/vispatch-1.4.6/source/strl_fn.h
Normal file
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
strl_fn.h
|
||||
header file for BSD strlcat and strlcpy
|
||||
|
||||
$Id: strl_fn.h,v 1.2 2008/01/18 09:57:01 sezero Exp $
|
||||
*/
|
||||
|
||||
#ifndef __STRLFUNCS_H
|
||||
#define __STRLFUNCS_H
|
||||
|
||||
/* do we have strlcpy and strlcat as native library functions? */
|
||||
#undef HAVE_STRLCPY
|
||||
#undef HAVE_STRLCAT
|
||||
|
||||
#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__) || defined(__MACOSX__) || defined(__DragonFly__)
|
||||
|
||||
#define HAVE_STRLCPY 1
|
||||
#define HAVE_STRLCAT 1
|
||||
|
||||
#else
|
||||
|
||||
#define HAVE_STRLCPY 0
|
||||
#define HAVE_STRLCAT 0
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* __STRLFUNCS_H */
|
||||
|
||||
Reference in New Issue
Block a user