[Pcsclite-cvs-commit] r6925 - trunk/Drivers/ccid/src/towitoko

ludovic.rousseau at free.fr ludovic.rousseau at free.fr
Tue Jun 17 09:19:25 UTC 2014


Author: rousseau
Date: 2014-06-17 09:19:25 +0000 (Tue, 17 Jun 2014)
New Revision: 6925

Modified:
   trunk/Drivers/ccid/src/towitoko/atr.c
   trunk/Drivers/ccid/src/towitoko/pps.c
Log:
Use #ifdef HAVE_* before including .h files

Some systems do not have C header files, like UEFI for example.


Modified: trunk/Drivers/ccid/src/towitoko/atr.c
===================================================================
--- trunk/Drivers/ccid/src/towitoko/atr.c	2014-06-17 09:14:49 UTC (rev 6924)
+++ trunk/Drivers/ccid/src/towitoko/atr.c	2014-06-17 09:19:25 UTC (rev 6925)
@@ -20,9 +20,12 @@
 	Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 */
 
+#include "config.h"
+
 #include "atr.h"
-#include <stdlib.h>
+#ifdef HAVE_STRING_H
 #include <string.h>
+#endif
 #include "debug.h"
 
 /*

Modified: trunk/Drivers/ccid/src/towitoko/pps.c
===================================================================
--- trunk/Drivers/ccid/src/towitoko/pps.c	2014-06-17 09:14:49 UTC (rev 6924)
+++ trunk/Drivers/ccid/src/towitoko/pps.c	2014-06-17 09:19:25 UTC (rev 6925)
@@ -22,9 +22,12 @@
 
 #include "pps.h"
 #include "atr.h"
+#ifdef HAVE_STDLIB_H
 #include <stdlib.h>
-#include <stdio.h>
+#endif
+#ifdef HAVE_STRING_H
 #include <string.h>
+#endif
 #include <ifdhandler.h>
 
 #include "commands.h"




More information about the Pcsclite-cvs-commit mailing list