From d8c9b06b4092fa22d5165e5c173ee37f68681bed Mon Sep 17 00:00:00 2001 From: cherierm Date: Wed, 28 Nov 2007 15:59:18 +0000 Subject: [PATCH] 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 --- include/xbt/log.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, \ -- 2.20.1