From: cherierm Date: Tue, 8 Jul 2008 09:16:50 +0000 (+0000) Subject: Add extern "C" declaration to preserve the compatibility of the C code on C++ compilers. X-Git-Tag: v3.3~247 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/35a3808b5d107697da3f569a0a2566cefa1c2070?hp=2561751468e43c42e5a7a1cf24417cdd71675ee6 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 --- 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