Ajout des "extern C" et des prototypes dans les .h pour compiler en C++

This commit is contained in:
Forgotten Author (ac) 2002-06-01 15:51:29 +00:00
parent 19ce6c782d
commit ec5463cf89
6 changed files with 19 additions and 11 deletions

View File

@ -26,7 +26,7 @@
* Date : 05/08/93
* Author : Frederic Petrot <Frederic.Petrot@lip6.fr>
* Modified by Czo <Olivier.Sirol@lip6.fr> 1997,98
* $Id: mlo.h,v 1.2 2002/05/14 09:10:29 xtof Exp $
* $Id: mlo.h,v 1.3 2002/06/01 15:51:29 ac Exp $
*/
#ifndef _MLO_H_
@ -37,7 +37,7 @@ extern "C" {
#endif /* __cplusplus */
#ifndef __P
# if defined(__STDC__) || defined(__GNUC__)
# if defined(__STDC__) || defined(__GNUC__) || defined(__cplusplus)
# define __P(x) x
# else
# define __P(x) ()

View File

@ -26,7 +26,7 @@
* Date : 05/08/93
* Author : Frederic Petrot <Frederic.Petrot@lip6.fr>
* Modified by Czo <Olivier.Sirol@lip6.fr> 1997,98
* $Id: mlu.h,v 1.2 2002/05/14 09:10:29 xtof Exp $
* $Id: mlu.h,v 1.3 2002/06/01 15:51:29 ac Exp $
*/
#ifndef _MLU_H_
@ -37,7 +37,7 @@ extern "C" {
#endif /* __cplusplus */
#ifndef __P
# if defined(__STDC__) || defined(__GNUC__)
# if defined(__STDC__) || defined(__GNUC__) || defined(__cplusplus)
# define __P(x) x
# else
# define __P(x) ()

View File

@ -26,7 +26,7 @@
* Date : 05/08/93
* Author : Frederic Petrot <Frederic.Petrot@lip6.fr>
* Modified by Czo <Olivier.Sirol@lip6.fr> 1997,98
* $Id: mph.h,v 1.2 2002/05/14 09:10:29 xtof Exp $
* $Id: mph.h,v 1.3 2002/06/01 15:51:29 ac Exp $
*/
#ifndef _MPH_H_
@ -37,7 +37,7 @@ extern "C" {
#endif /* __cplusplus */
#ifndef __P
# if defined(__STDC__) || defined(__GNUC__)
# if defined(__STDC__) || defined(__GNUC__) || defined(__cplusplus)
# define __P(x) x
# else
# define __P(x) ()

View File

@ -26,7 +26,7 @@
* Date : 05/08/93
* Author : Frederic Petrot <Frederic.Petrot@lip6.fr>
* Modified by Czo <Olivier.Sirol@lip6.fr> 1997,98
* $Id: mpu.h,v 1.2 2002/05/14 09:10:29 xtof Exp $
* $Id: mpu.h,v 1.3 2002/06/01 15:51:29 ac Exp $
*/
#ifndef _MPU_H_
@ -37,7 +37,7 @@ extern "C" {
#endif /* __cplusplus */
#ifndef __P
# if defined(__STDC__) || defined(__GNUC__)
# if defined(__STDC__) || defined(__GNUC__) || defined(__cplusplus)
# define __P(x) x
# else
# define __P(x) ()

View File

@ -26,7 +26,7 @@
* Date : 31/08/93
* Author : Frederic Petrot <Frederic.Petrot@lip6.fr>
* Modified by Czo <Olivier.Sirol@lip6.fr> 1997,98
* $Id: mut.h,v 1.4 2002/05/14 09:10:29 xtof Exp $
* $Id: mut.h,v 1.5 2002/06/01 15:51:29 ac Exp $
*/
#ifndef _MUT_H_
@ -41,7 +41,7 @@ extern "C" {
#endif /* __cplusplus */
#ifndef __P
# if defined(__STDC__) || defined(__GNUC__)
# if defined(__STDC__) || defined(__GNUC__) || defined(__cplusplus)
# define __P(x) x
# else
# define __P(x) ()

View File

@ -21,7 +21,7 @@
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ident "$Id: rcn.h,v 1.2 2002/05/14 09:10:29 xtof Exp $"
#ident "$Id: rcn.h,v 1.3 2002/06/01 15:51:29 ac Exp $"
/*******************************************************************************
* rcn : constantes, externs, and data-structures *
@ -45,6 +45,14 @@
extern "C" {
#endif /* __cplusplus */
#ifndef __P
# if defined(__STDC__) || defined(__GNUC__) || defined(__cplusplus)
# define __P(x) x
# else
# define __P(x) ()
# endif
#endif
/* layer of wire */
#define RCN_WIRE_UNKNOW ((unsigned char) 0x00000001)
#define RCN_WIRE_POLY ((unsigned char) 0x00000002)