[Pcsclite-cvs-commit] CVS Drivers/ccid/src/openct

CVS User rousseau ludovic.rousseau@free.fr
Thu, 21 Apr 2005 07:41:27 +0000


Update of /cvsroot/pcsclite/Drivers/ccid/src/openct
In directory haydn:/tmp/cvs-serv5537/openct

Modified Files:
	checksum.c checksum.h proto-t1.h 
Log Message:
 #include <stdint.h> only if HAVE_STDINT_H is defined.
Some old FreeBSD do not have stdint.h.

Thanks to Tilman Linneweh for the patch


--- /cvsroot/pcsclite/Drivers/ccid/src/openct/checksum.c	2004/06/30 09:37:08	1.1
+++ /cvsroot/pcsclite/Drivers/ccid/src/openct/checksum.c	2005/04/21 07:41:27	1.2
@@ -5,7 +5,10 @@
  * For licensing, see the file LICENCE
  */
 
+#include "config.h"
+#ifdef HAVE_STDINT_H
 #include <stdint.h>
+#endif
 #include <unistd.h>
 
 #define min( a, b )   ( ( ( a ) < ( b ) ) ? ( a ) : ( b ) )
--- /cvsroot/pcsclite/Drivers/ccid/src/openct/checksum.h	2005/03/14 18:56:53	1.3
+++ /cvsroot/pcsclite/Drivers/ccid/src/openct/checksum.h	2005/04/21 07:41:27	1.4
@@ -17,12 +17,15 @@
     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
 */
 
-/* $Id: checksum.h,v 1.3 2005/03/14 18:56:53 rousseau Exp $ */
+/* $Id: checksum.h,v 1.4 2005/04/21 07:41:27 rousseau Exp $ */
 
 #ifndef __CHECKSUM_H__
 #define __CHECKSUM_H__
 
+#include "config.h"
+#ifdef HAVE_STDINT_H
 #include <stdint.h>
+#endif
 #include <unistd.h>
 
 extern unsigned int	csum_lrc_compute(const uint8_t *, size_t, unsigned char *);
--- /cvsroot/pcsclite/Drivers/ccid/src/openct/proto-t1.h	2005/03/14 18:56:53	1.7
+++ /cvsroot/pcsclite/Drivers/ccid/src/openct/proto-t1.h	2005/04/21 07:41:27	1.8
@@ -17,13 +17,16 @@
     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
 */
 
-/* $Id: proto-t1.h,v 1.7 2005/03/14 18:56:53 rousseau Exp $ */
+/* $Id: proto-t1.h,v 1.8 2005/04/21 07:41:27 rousseau Exp $ */
 
 #ifndef __PROTO_T1_H__
 #define __PROTO_T1_H__
 
-#include <unistd.h>
+#include "config.h"
+#ifdef HAVE_STDINT_H
 #include <stdint.h>
+#endif
+#include <unistd.h>
 
 enum {
 	IFD_PROTOCOL_RECV_TIMEOUT = 0x0000,