Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add extern "C" declaration to preserve the compatibility of the C code on C++ compilers.
authorcherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 8 Jul 2008 09:16:50 +0000 (09:16 +0000)
committercherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 8 Jul 2008 09:16:50 +0000 (09:16 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5860 48e7efb5-ca39-0410-a469-dd3cf9ba447f

include/surf/simgrid_dtd.h
include/surf/surfxml_parse.h

index 8de48ee..cd48cd2 100644 (file)
@@ -48,6 +48,9 @@
 #ifndef _FLEXML_simgrid_H
 #define _FLEXML_simgrid_H
 
+\r
+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);
+
+\r
+SG_END_DECL()
+
 #endif
index e7085e2..421845e 100644 (file)
@@ -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