From 35a3808b5d107697da3f569a0a2566cefa1c2070 Mon Sep 17 00:00:00 2001 From: cherierm Date: Tue, 8 Jul 2008 09:16:50 +0000 Subject: [PATCH] Add extern "C" declaration to preserve the compatibility of the C code on C++ compilers. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5860 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- include/surf/simgrid_dtd.h | 7 +++++++ include/surf/surfxml_parse.h | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/include/surf/simgrid_dtd.h b/include/surf/simgrid_dtd.h index 8de48eeeea..cd48cd2a82 100644 --- a/include/surf/simgrid_dtd.h +++ b/include/surf/simgrid_dtd.h @@ -48,6 +48,9 @@ #ifndef _FLEXML_simgrid_H #define _FLEXML_simgrid_H + +SG_BEGIN_DECL() + /* XML application entry points. */ XBT_PUBLIC(void ) STag_surfxml_platform(void); XBT_PUBLIC(void ) ETag_surfxml_platform(void); @@ -363,4 +366,8 @@ XBT_PUBLIC(int ) yylex(void); /* Flexml error handling function (useful only when -q flag passed to flexml) */ const char * surfxml_parse_err_msg(void); + + +SG_END_DECL() + #endif diff --git a/include/surf/surfxml_parse.h b/include/surf/surfxml_parse.h index e7085e29ea..421845ee53 100644 --- a/include/surf/surfxml_parse.h +++ b/include/surf/surfxml_parse.h @@ -13,6 +13,9 @@ #include "xbt/function_types.h" #include "xbt/dict.h" + +SG_BEGIN_DECL() + /* Hook for the different tags. All the functions which pointer to are push into here are run when the tag is encountered */ XBT_PUBLIC(xbt_dynar_t) STag_surfxml_platform_cb_list; XBT_PUBLIC(xbt_dynar_t) ETag_surfxml_platform_cb_list; @@ -88,4 +91,7 @@ XBT_PUBLIC_DATA(int_f_void_t) surf_parse; /* Entry-point to the parser. Set this XBT_PUBLIC(void) surfxml_add_callback(xbt_dynar_t cb_list, void_f_void_t function); +SG_END_DECL() + + #endif -- 2.20.1