allow C++ apps to use crc32 Signed-off-by: André Roth <neolynx@xxxxxxxxx> --- lib/include/libdvbv5/crc32.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/include/libdvbv5/crc32.h b/lib/include/libdvbv5/crc32.h index d1968e8..4261bda 100644 --- a/lib/include/libdvbv5/crc32.h +++ b/lib/include/libdvbv5/crc32.h @@ -1,6 +1,6 @@ /* * Copyright (c) 2011-2012 - Mauro Carvalho Chehab - * Copyright (c) 2012 - Andre Roth <neolynx@xxxxxxxxx> + * Copyright (c) 2012-2014 - Andre Roth <neolynx@xxxxxxxxx> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -25,7 +25,15 @@ #include <stdint.h> #include <unistd.h> /* size_t */ +#ifdef __cplusplus +extern "C" { +#endif + uint32_t crc32(uint8_t *data, size_t datalen, uint32_t crc); +#ifdef __cplusplus +} +#endif + #endif -- 1.9.1 -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html