From 85c7ef583583c4424f774da10e46f7f1b1063ac7 Mon Sep 17 00:00:00 2001 From: Bart Polot Date: Fri, 18 Jan 2013 15:08:26 +0000 Subject: [PATCH] - cpp guards --- src/include/block_mesh.h | 15 +++++++++++++++ src/mesh/mesh.h | 16 ++++++++++++++++ 2 files changed, 31 insertions(+) diff --git a/src/include/block_mesh.h b/src/include/block_mesh.h index fe02f944c..9dfb85945 100644 --- a/src/include/block_mesh.h +++ b/src/include/block_mesh.h @@ -26,6 +26,14 @@ #ifndef BLOCK_MESH_H #define BLOCK_MESH_H +#ifdef __cplusplus +extern "C" +{ +#if 0 /* keep Emacsens' auto-indent happy */ +} +#endif +#endif + #include "gnunet_util_lib.h" #include "gnunet_mesh_service.h" #include @@ -46,4 +54,11 @@ struct PBlock GNUNET_MESH_ApplicationType type; }; +#if 0 /* keep Emacsens' auto-indent happy */ +{ +#endif +#ifdef __cplusplus +} +#endif + #endif \ No newline at end of file diff --git a/src/mesh/mesh.h b/src/mesh/mesh.h index e562846f0..a5a817c48 100644 --- a/src/mesh/mesh.h +++ b/src/mesh/mesh.h @@ -25,6 +25,15 @@ #ifndef MESH_H_ #define MESH_H_ + +#ifdef __cplusplus +extern "C" +{ +#if 0 /* keep Emacsens' auto-indent happy */ +} +#endif +#endif + #include #define MESH_DEBUG GNUNET_YES @@ -435,4 +444,11 @@ GMC_min_pid (uint32_t a, uint32_t b); const char * GNUNET_MESH_DEBUG_M2S (uint16_t m); +#if 0 /* keep Emacsens' auto-indent happy */ +{ +#endif +#ifdef __cplusplus +} +#endif + #endif -- 2.25.1