[Pcsclite-cvs-commit] r2115 - trunk/PCSC/src

Ludovic Rousseau rousseau at costa.debian.org
Mon Jul 31 13:36:16 UTC 2006


Author: rousseau
Date: 2006-07-31 13:36:16 +0000 (Mon, 31 Jul 2006)
New Revision: 2115

Modified:
   trunk/PCSC/src/strlcat.c
   trunk/PCSC/src/strlcpy.c
Log:
#include "config.h" and define strlcpy/strlcat only if they are not
already provided by the OS (test HAVE_STRLCPY)


Modified: trunk/PCSC/src/strlcat.c
===================================================================
--- trunk/PCSC/src/strlcat.c	2006-07-31 13:28:50 UTC (rev 2114)
+++ trunk/PCSC/src/strlcat.c	2006-07-31 13:36:16 UTC (rev 2115)
@@ -16,6 +16,12 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"  	 
+#endif
+
+#ifndef HAVE_STRLCPY
+
 #include <sys/types.h>
 #include <string.h>
 
@@ -53,3 +59,4 @@
 
 	return(dlen + (s - src));	/* count does not include NUL */
 }
+#endif

Modified: trunk/PCSC/src/strlcpy.c
===================================================================
--- trunk/PCSC/src/strlcpy.c	2006-07-31 13:28:50 UTC (rev 2114)
+++ trunk/PCSC/src/strlcpy.c	2006-07-31 13:36:16 UTC (rev 2115)
@@ -16,6 +16,12 @@
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"  	 
+#endif
+
+#ifndef HAVE_STRLCPY
+
 #include <sys/types.h>
 #include <string.h>
 
@@ -49,3 +55,5 @@
 
 	return(s - src - 1);	/* count does not include NUL */
 }
+
+#endif




More information about the Pcsclite-cvs-commit mailing list