libdvbv5: provide crc32 to c++
authorAndré Roth <neolynx@gmail.com>
Sun, 6 Jul 2014 18:20:30 +0000 (15:20 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Sat, 26 Jul 2014 18:06:22 +0000 (15:06 -0300)
allow C++ apps to use crc32

Signed-off-by: André Roth <neolynx@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
lib/include/libdvbv5/crc32.h

index c886862..9582d4c 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Copyright (c) 2011-2012 - Mauro Carvalho Chehab
- * Copyright (c) 2012 - Andre Roth <neolynx@gmail.com>
+ * Copyright (c) 2012-2014 - Andre Roth <neolynx@gmail.com>
  *
  * This program is free software; you can redistribute it and/or
  * modify it under the terms of the GNU General Public License
 #include <stdint.h>
 #include <unistd.h> /* size_t */
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 uint32_t dvb_crc32(uint8_t *data, size_t datalen, uint32_t crc);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif