diff --git a/src/examples/doc/quick_start_example1.c b/src/examples/doc/quick_start_example1.c index 52b3f73..9ae1f20 100644 --- a/src/examples/doc/quick_start_example1.c +++ b/src/examples/doc/quick_start_example1.c @@ -1,3 +1,7 @@ +#ifdef HAVE_CONFIG_H + #include "config.h" +#endif // HAVE_CONFIG_H + #include #include diff --git a/src/examples/nfc-anticol.c b/src/examples/nfc-anticol.c index 5c371ad..675ce18 100644 --- a/src/examples/nfc-anticol.c +++ b/src/examples/nfc-anticol.c @@ -1,4 +1,4 @@ -/** +/*- * Public platform independent Near Field Communication (NFC) library * * Copyright (C) 2009, Roel Verdult @@ -15,12 +15,17 @@ * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see - * - * + */ + +/** * @file nfc-anticol.c * @brief */ +#ifdef HAVE_CONFIG_H + #include "config.h" +#endif // HAVE_CONFIG_H + #include #include #include diff --git a/src/examples/nfc-emulate.c b/src/examples/nfc-emulate.c index 9193b2f..8090603 100644 --- a/src/examples/nfc-emulate.c +++ b/src/examples/nfc-emulate.c @@ -1,4 +1,4 @@ -/** +/*- * Public platform independent Near Field Communication (NFC) library * * Copyright (C) 2009, Roel Verdult @@ -15,12 +15,17 @@ * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see - * - * + */ + +/** * @file nfc-emulate.c * @brief */ +#ifdef HAVE_CONFIG_H + #include "config.h" +#endif // HAVE_CONFIG_H + #include #include #include diff --git a/src/examples/nfc-list.c b/src/examples/nfc-list.c index d83fabf..2a75b3f 100644 --- a/src/examples/nfc-list.c +++ b/src/examples/nfc-list.c @@ -1,4 +1,4 @@ -/** +/*- * Public platform independent Near Field Communication (NFC) library * * Copyright (C) 2009, Roel Verdult @@ -15,12 +15,17 @@ * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see - * - * + */ + +/** * @file nfc-list.c * @brief */ +#ifdef HAVE_CONFIG_H + #include "config.h" +#endif // HAVE_CONFIG_H + #ifdef HAVE_LIBUSB #ifdef DEBUG #include diff --git a/src/examples/nfc-mfclassic.c b/src/examples/nfc-mfclassic.c index 12df8a6..732af1a 100644 --- a/src/examples/nfc-mfclassic.c +++ b/src/examples/nfc-mfclassic.c @@ -22,6 +22,10 @@ * @brief MIFARE Classic manipulation example */ +#ifdef HAVE_CONFIG_H + #include "config.h" +#endif // HAVE_CONFIG_H + #include #include #include diff --git a/src/examples/nfc-mfultralight.c b/src/examples/nfc-mfultralight.c index c54aff1..1d3e304 100644 --- a/src/examples/nfc-mfultralight.c +++ b/src/examples/nfc-mfultralight.c @@ -1,4 +1,4 @@ -/** +/*- * Public platform independent Near Field Communication (NFC) library * * Copyright (C) 2009, Roel Verdult @@ -15,12 +15,17 @@ * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see - * - * + */ + +/** * @file nfc-mfultool.c * @brief */ +#ifdef HAVE_CONFIG_H + #include "config.h" +#endif // HAVE_CONFIG_H + #include #include #include diff --git a/src/examples/nfc-relay.c b/src/examples/nfc-relay.c index a6288c2..49f5344 100644 --- a/src/examples/nfc-relay.c +++ b/src/examples/nfc-relay.c @@ -1,4 +1,4 @@ -/** +/*- * Public platform independent Near Field Communication (NFC) library * * Copyright (C) 2009, Roel Verdult @@ -15,12 +15,17 @@ * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see - * - * + */ + +/** * @file nfc-relay.c * @brief */ +#ifdef HAVE_CONFIG_H + #include "config.h" +#endif // HAVE_CONFIG_H + #include #include #include diff --git a/src/examples/nfcip-initiator.c b/src/examples/nfcip-initiator.c index 4ef373a..0df1bc4 100644 --- a/src/examples/nfcip-initiator.c +++ b/src/examples/nfcip-initiator.c @@ -1,4 +1,4 @@ -/** +/*- * Public platform independent Near Field Communication (NFC) library * * Copyright (C) 2009, Roel Verdult @@ -15,12 +15,17 @@ * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see - * - * + */ + +/** * @file nfcip-initiator.c * @brief */ +#ifdef HAVE_CONFIG_H + #include "config.h" +#endif // HAVE_CONFIG_H + #include #include #include diff --git a/src/examples/nfcip-target.c b/src/examples/nfcip-target.c index 6739b4f..b245e88 100644 --- a/src/examples/nfcip-target.c +++ b/src/examples/nfcip-target.c @@ -1,4 +1,4 @@ -/** +/*- * Public platform independent Near Field Communication (NFC) library * * Copyright (C) 2009, Roel Verdult @@ -15,12 +15,18 @@ * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see - * - * + * + */ + +/** * @file nfcip-target.c * @brief */ +#ifdef HAVE_CONFIG_H + #include "config.h" +#endif // HAVE_CONFIG_H + #include #include diff --git a/src/lib/bitutils.c b/src/lib/bitutils.c index 119c36f..732aea3 100644 --- a/src/lib/bitutils.c +++ b/src/lib/bitutils.c @@ -1,4 +1,4 @@ -/** +/*- * Public platform independent Near Field Communication (NFC) library * * Copyright (C) 2009, Roel Verdult @@ -15,12 +15,17 @@ * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see - * - * + */ + + /** * @file bitutils.c * @brief */ +#ifdef HAVE_CONFIG_H + #include "config.h" +#endif // HAVE_CONFIG_H + #include #include "bitutils.h" diff --git a/src/lib/buses/uart.c b/src/lib/buses/uart.c index 0b74eee..b664c59 100644 --- a/src/lib/buses/uart.c +++ b/src/lib/buses/uart.c @@ -1,4 +1,4 @@ -/** +/*- * Public platform independent Near Field Communication (NFC) library * * Copyright (C) 2009, Roel Verdult @@ -15,8 +15,10 @@ * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see - * - * + * + */ + +/** * @file uart.c * @brief */ @@ -26,6 +28,10 @@ Based on RS232 code written by Teunis van Beelen available: http://www.teuniz.net/RS-232/index.html */ +#ifdef HAVE_CONFIG_H + #include "config.h" +#endif // HAVE_CONFIG_H + #include "uart.h" #include diff --git a/src/lib/chips/pn53x.c b/src/lib/chips/pn53x.c index 5732d75..5bc2a63 100644 --- a/src/lib/chips/pn53x.c +++ b/src/lib/chips/pn53x.c @@ -1,4 +1,4 @@ -/** +/*- * Public platform independent Near Field Communication (NFC) library * * Copyright (C) 2009, Roel Verdult @@ -15,12 +15,17 @@ * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see - * - * + */ + +/** * @file pn53x.h * @brief PN531, PN532 and PN533 common functions */ +#ifdef HAVE_CONFIG_H + #include "config.h" +#endif // HAVE_CONFIG_H + #include #include diff --git a/src/lib/drivers.h b/src/lib/drivers.h index 8a04ec6..f3ae3e3 100644 --- a/src/lib/drivers.h +++ b/src/lib/drivers.h @@ -25,11 +25,6 @@ #ifndef __NFC_DRIVERS_H__ #define __NFC_DRIVERS_H__ -#ifdef HAVE_CONFIG_H - #include "config.h" -#endif /* HAVE_CONFIG_H */ - - #include #ifdef HAVE_PCSC_LITE diff --git a/src/lib/drivers/acr122.c b/src/lib/drivers/acr122.c index a2fa068..9b16b5f 100644 --- a/src/lib/drivers/acr122.c +++ b/src/lib/drivers/acr122.c @@ -1,4 +1,4 @@ -/** +/*- * Public platform independent Near Field Communication (NFC) library * * Copyright (C) 2009, Roel Verdult @@ -15,12 +15,17 @@ * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see - * - * + */ + +/** * @file acr122.c * @brief */ +#ifdef HAVE_CONFIG_H + #include "config.h" +#endif // HAVE_CONFIG_H + #include #include #include diff --git a/src/lib/drivers/arygon.c b/src/lib/drivers/arygon.c index e136c3e..09c372c 100644 --- a/src/lib/drivers/arygon.c +++ b/src/lib/drivers/arygon.c @@ -24,6 +24,11 @@ * This driver can handle ARYGON readers that use UART as bus. * UART connection can be direct (host<->arygon_uc) or could be provided by internal USB to serial interface (e.g. host<->ftdi_chip<->arygon_uc) */ + +#ifdef HAVE_CONFIG_H + #include "config.h" +#endif // HAVE_CONFIG_H + #include "../drivers.h" #include "../bitutils.h" diff --git a/src/lib/drivers/pn531_usb.c b/src/lib/drivers/pn531_usb.c index 2e4a4a3..3ae764a 100644 --- a/src/lib/drivers/pn531_usb.c +++ b/src/lib/drivers/pn531_usb.c @@ -1,4 +1,4 @@ -/** +/*- * Public platform independent Near Field Communication (NFC) library * * Copyright (C) 2009, Roel Verdult @@ -15,8 +15,9 @@ * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see - * - * + */ + +/** * @file pn531_usb.c * @brief Driver for PN531 chip using USB */ @@ -25,6 +26,10 @@ Thanks to d18c7db and Okko for example code */ +#ifdef HAVE_CONFIG_H + #include "config.h" +#endif // HAVE_CONFIG_H + #include #include "../drivers.h" diff --git a/src/lib/drivers/pn532_uart.c b/src/lib/drivers/pn532_uart.c index f8423ff..1b12ecf 100644 --- a/src/lib/drivers/pn532_uart.c +++ b/src/lib/drivers/pn532_uart.c @@ -21,6 +21,11 @@ * @file pn532_uart.c * @brief PN532 driver using UART bus (UART, RS232, etc.) */ + +#ifdef HAVE_CONFIG_H + #include "config.h" +#endif // HAVE_CONFIG_H + #include "../drivers.h" #include "../bitutils.h" diff --git a/src/lib/drivers/pn533_usb.c b/src/lib/drivers/pn533_usb.c index 31ecd3a..3b623a8 100644 --- a/src/lib/drivers/pn533_usb.c +++ b/src/lib/drivers/pn533_usb.c @@ -1,4 +1,4 @@ -/** +/*- * Public platform independent Near Field Communication (NFC) library * * Copyright (C) 2009, Roel Verdult @@ -15,8 +15,9 @@ * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see - * - * + */ + +/** * @file pn533_usb.c * @brief Driver for PN533 chip using USB */ @@ -25,6 +26,10 @@ Thanks to d18c7db and Okko for example code */ +#ifdef HAVE_CONFIG_H + #include "config.h" +#endif // HAVE_CONFIG_H + #include #include "../drivers.h" diff --git a/src/lib/drivers/pn53x_usb.c b/src/lib/drivers/pn53x_usb.c index c1eaf14..dfd768d 100644 --- a/src/lib/drivers/pn53x_usb.c +++ b/src/lib/drivers/pn53x_usb.c @@ -1,4 +1,4 @@ -/** +/*- * Public platform independent Near Field Communication (NFC) library * * Copyright (C) 2009, Roel Verdult @@ -15,12 +15,17 @@ * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see - * - * + */ + +/** * @file pn53x_usb.c * @brief Driver common routines for PN53x chips using USB */ +#ifdef HAVE_CONFIG_H + #include "config.h" +#endif // HAVE_CONFIG_H + /* Thanks to d18c7db and Okko for example code */ diff --git a/src/lib/nfc.c b/src/lib/nfc.c index 6cb0f79..87b4a1c 100644 --- a/src/lib/nfc.c +++ b/src/lib/nfc.c @@ -15,7 +15,6 @@ * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see - * */ /** @@ -23,6 +22,10 @@ * @brief NFC library implementation */ +#ifdef HAVE_CONFIG_H + #include "config.h" +#endif // HAVE_CONFIG_H + #include #include #include @@ -35,10 +38,6 @@ #include -#ifdef HAVE_CONFIG_H - #include "config.h" -#endif // HAVE_CONFIG_H - nfc_device_desc_t * nfc_pick_device (void); // PN53X configuration