add c++ extern definitions


git-svn-id: file:///home/lennart/svn/public/libdaemon/trunk@68 153bfa13-eec0-0310-be40-b0cb6a0e1b4b
diff --git a/src/dexec.h b/src/dexec.h
index de9f6ff..831cb9d 100644
--- a/src/dexec.h
+++ b/src/dexec.h
@@ -21,6 +21,10 @@
  * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
  */
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /** \file
  *
  * Contains a robust API for running sub processes with STDOUT and
@@ -44,4 +48,8 @@
  */
 int daemon_exec(const char *dir, int *ret, const char *prog, ...);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif