summaryrefslogtreecommitdiffstats
path: root/src/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h
index a8f91a1..959f0b3 100644
--- a/src/common.h
+++ b/src/common.h
@@ -21,6 +21,10 @@
*/
#ifndef _COMMON_H
#define _COMMON_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef struct efi_guid_s efi_guid_t;
struct efi_guid_s
{
@@ -442,4 +446,8 @@ int strncasecmp(const char * s1, const char * s2, size_t len);
typeof(y) _y = (y); \
(void) (&_x == &_y); \
_x > _y ? _x : _y; })
+
+#ifdef __cplusplus
+} /* closing brace for extern "C" */
+#endif
#endif