A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
use #if instead if #ifdef for the things in the public config header
[simgrid.git]
/
include
/
xbt
/
dict.h
diff --git
a/include/xbt/dict.h
b/include/xbt/dict.h
index 4a03727ab0de602daeb1803ac30945c8125c7963..6a5e9126c5877a8e1c73ca5c21dead59aafb0bb1 100644
(file)
--- a/
include/xbt/dict.h
+++ b/
include/xbt/dict.h
@@
-173,4
+173,16
@@
xbt_dict_foreach(head, cursor, key, data) {
/** @} */
SG_END_DECL()
+
+#ifdef __cplusplus
+namespace simgrid {
+namespace xbt {
+ inline void destroy(xbt_dict_t d)
+ {
+ xbt_dict_free(&d);
+ }
+}
+}
+#endif
+
#endif /* _XBT_DICT_H */