[Pcsclite-cvs-commit] r4906 - /trunk/PCSC/src/strlcpycat.h
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Thu Apr 29 14:50:33 UTC 2010
Author: rousseau
Date: Thu Apr 29 14:50:29 2010
New Revision: 4906
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=4906
Log:
#include <string.h> on plateform that have strlcpy() to avoid a warning
(Mac OS X and Android)
error.c: In function ‘pcsc_stringify_error’:
error.c:64: warning: implicit declaration of function ‘strlcpy’
error.c:64: warning: nested extern declaration of ‘strlcpy’
Modified:
trunk/PCSC/src/strlcpycat.h
Modified: trunk/PCSC/src/strlcpycat.h
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/strlcpycat.h?rev=4906&op=diff
==============================================================================
--- trunk/PCSC/src/strlcpycat.h (original)
+++ trunk/PCSC/src/strlcpycat.h Thu Apr 29 14:50:29 2010
@@ -12,7 +12,9 @@
* @brief prototypes of strlcpy()/strlcat() imported from OpenBSD
*/
-#ifndef HAVE_STRLCPY
+#ifdef HAVE_STRLCPY
+#include <string.h>
+#else
size_t strlcpy(char *dst, const char *src, size_t siz);
#endif
More information about the Pcsclite-cvs-commit
mailing list