X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/b351374ca8930af7144a08ffdf1b52af010f5188..bd94b978838346e5662e5ef46455ae454451c0b3:/common/parity.h?ds=sidebyside

diff --git a/common/parity.h b/common/parity.h
index 79b8221d..8e2f097c 100644
--- a/common/parity.h
+++ b/common/parity.h
@@ -9,24 +9,25 @@
 #ifndef __PARITY_H
 #define __PARITY_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #include <stdint.h>
 
 extern const uint8_t OddByteParity[256];
+extern const uint8_t EvenByteParity[256];
 
 static inline uint8_t oddparity8(uint8_t bt)
 {
 	return OddByteParity[bt];
 }
 
-
-extern const uint8_t EvenByteParity[256];
-
 static inline uint8_t evenparity8(const uint8_t bt)
 {
 	return EvenByteParity[bt];
 }
 
-
 static inline uint8_t evenparity32(uint32_t x) 
 {
 	x ^= x >> 16;
@@ -34,5 +35,8 @@ static inline uint8_t evenparity32(uint32_t x)
 	return EvenByteParity[x & 0xff];
 }
 
+#ifdef __cplusplus
+}
+#endif
 
 #endif /* __PARITY_H */