Ajout des "extern C" et des protos dans les .h poutr compiler en C++

This commit is contained in:
Forgotten Author (ac) 2002-06-01 15:52:28 +00:00
parent ec5463cf89
commit 11d2cf485b
2 changed files with 17 additions and 1 deletions

View File

@ -43,8 +43,12 @@
| | | |
\------------------------------------------------------*/ \------------------------------------------------------*/
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
# ifndef __P # ifndef __P
# if defined(__STDC__) || defined(__GNUC__) # if defined(__STDC__) || defined(__GNUC__) || defined(__cplusplus)
# define __P(x) x # define __P(x) x
# else # else
# define __P(x) () # define __P(x) ()
@ -447,4 +451,8 @@
extern autgraph * loadautgraph __P((char *FileName)); extern autgraph * loadautgraph __P((char *FileName));
extern void driveautgraph __P((autgraph *Graph, char *FileName)); extern void driveautgraph __P((autgraph *Graph, char *FileName));
#ifdef __cplusplus
}
#endif /* __cplusplus */
# endif # endif

View File

@ -32,6 +32,10 @@
#ifndef BEH_BEHDEF #ifndef BEH_BEHDEF
#define BEH_BEHDEF #define BEH_BEHDEF
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
/* ###------------------------------------------------------### */ /* ###------------------------------------------------------### */
/* defines */ /* defines */
/* ###------------------------------------------------------### */ /* ###------------------------------------------------------### */
@ -348,4 +352,8 @@ extern void beh_toolbug ();
extern char *beh_vhdlname (); extern char *beh_vhdlname ();
extern char *beh_vhvector (); extern char *beh_vhvector ();
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif #endif