From 2425b6210c2056be0c3a7bef9390b251c3c5af32 Mon Sep 17 00:00:00 2001 From: Arnaud Giersch Date: Fri, 28 Mar 2014 18:15:55 +0100 Subject: [PATCH] [mc] Better fix for compatibility with old/broken version of dwarf.h. Avoids to use a hardcoded value. --- src/mc/mc_dwarf.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/mc/mc_dwarf.c b/src/mc/mc_dwarf.c index b61b1dd66f..b24af22405 100644 --- a/src/mc/mc_dwarf.c +++ b/src/mc/mc_dwarf.c @@ -4,6 +4,7 @@ * under the terms of the license (GNU LGPL) which comes with this package. */ #include +#define DW_LANG_Objc DW_LANG_ObjC /* fix spelling error in older dwarf.h */ #include #include #include @@ -14,10 +15,6 @@ #include "mc_private.h" -// Define symbols not present in old version of dwarf.h. -// Old version of dwarf.h, use DW_LANG_Objc instead of this: -#define DW_LANG_ObjC 0x0010 - XBT_LOG_NEW_DEFAULT_SUBCATEGORY(mc_dwarf, mc, "DWARF processing"); /** \brief The default DW_TAG_lower_bound for a given DW_AT_language. -- 2.20.1