From d6810426845f32bd728c815b403a3c2722c6ae4f Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Sat, 2 Jan 2010 13:34:36 +0000 Subject: [PATCH] be consistent and only add extern C in the firm.h header and in no other header [r26876] --- include/libfirm/be.h | 8 -------- include/libfirm/dbginfo.h | 8 -------- 2 files changed, 16 deletions(-) diff --git a/include/libfirm/be.h b/include/libfirm/be.h index 59a47c1c3..bf7529112 100644 --- a/include/libfirm/be.h +++ b/include/libfirm/be.h @@ -26,10 +26,6 @@ #ifndef FIRM_BE_MAIN_H #define FIRM_BE_MAIN_H -#ifdef __cplusplus -extern "C" { -#endif - #include #include "irarch.h" #include "lowering.h" @@ -138,8 +134,4 @@ int be_is_valid_clobber(const char *clobber); typedef struct be_main_env_t be_main_env_t; typedef struct be_options_t be_options_t; -#ifdef __cplusplus -} -#endif - #endif diff --git a/include/libfirm/dbginfo.h b/include/libfirm/dbginfo.h index 00a15ce47..b6c538c1d 100644 --- a/include/libfirm/dbginfo.h +++ b/include/libfirm/dbginfo.h @@ -38,10 +38,6 @@ #include "firm_types.h" #include "ident.h" -#ifdef __cplusplus -extern "C" { -#endif - /** * @defgroup debug The Firm interface to debugging support. * @@ -213,8 +209,4 @@ void ir_set_debug_retrieve(retrieve_dbg_func func); */ const char *ir_retrieve_dbg_info(const dbg_info *dbg, unsigned *line); -#ifdef __cplusplus -} -#endif - #endif -- 2.20.1