summaryrefslogtreecommitdiffstats
path: root/src/mac/libraries/DES/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/mac/libraries/DES/include')
-rw-r--r--src/mac/libraries/DES/include/des.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mac/libraries/DES/include/des.h b/src/mac/libraries/DES/include/des.h
index f29177a6c..a73a45638 100644
--- a/src/mac/libraries/DES/include/des.h
+++ b/src/mac/libraries/DES/include/des.h
@@ -17,6 +17,10 @@
#include <stdio.h>
#include <MacTypes.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#ifndef DES_INT32
#define DES_INT32 SInt32
#endif
@@ -158,4 +162,8 @@ int des_set_key(des_cblock *key, des_key_schedule schedule);
# pragma import reset
#endif
+#ifdef __cplusplus
+}
+#endif
+
#endif /* DES_DEFS */