From: cherierm Date: Wed, 28 Nov 2007 15:59:18 +0000 (+0000) Subject: This change corrects the definition of the macro X-Git-Tag: v3.3~768 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/d8c9b06b4092fa22d5165e5c173ee37f68681bed?ds=sidebyside This change corrects the definition of the macro XBT_LOG_NEW_ROOT_SUBCATEGORY. Indeed, Ansi C (Visual C++ compiler standard language) doesn't allow to initialize a structure during its declaration with non constant values (OK Martin, I definitively correct the trouble for the other platforms) git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5079 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/include/xbt/log.h b/include/xbt/log.h index 0d5cc244f3..df5cbcb192 100644 --- a/include/xbt/log.h +++ b/include/xbt/log.h @@ -99,7 +99,7 @@ typedef enum { * XBT_LOG_NEW_CATEGORY */ #define XBT_LOG_NEW_SUBCATEGORY_helper(catName, parent, desc) \ XBT_EXPORT_NO_IMPORT(s_xbt_log_category_t) _XBT_LOGV(catName) = { \ - &_XBT_LOGV(parent), \ + NULL, \ NULL /* firstChild */, \ NULL /* nextSibling */, \ #catName, \