From: Hannes Jakschitsch Date: Thu, 15 Jul 2004 14:05:11 +0000 (+0000) Subject: preprocessor directives added for cplusplus compatibility X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=7472c1124b114af76a4f487164e57a073e22411c;p=libfirm preprocessor directives added for cplusplus compatibility [r3469] --- diff --git a/ir/st/exc.h b/ir/st/exc.h index c2cdc8408..826b27013 100644 --- a/ir/st/exc.h +++ b/ir/st/exc.h @@ -31,6 +31,10 @@ #include +#ifdef __cplusplus + extern "C" { +#endif + typedef enum { exc_invalid = 0, /* not yet computed */ exc_normal, /* normal CF */ @@ -47,6 +51,8 @@ typedef enum { exc_max /* maximum value of enum for 'bounds checking' */ } exc_t; + + const char *exc_to_string (exc_t); bool is_handler_entry (ir_graph*, ir_node*); @@ -67,4 +73,8 @@ ir_node* get_Block_handler (ir_node*); void set_Node_handler (ir_node*, ir_node*); ir_node* get_Node_handler (ir_node*); +#ifdef __cplusplus +} +#endif + # endif /* def _EXC_H_ */