Ajout des "extern C" et des prototypes dans les .h pour compiler en C++
This commit is contained in:
parent
19ce6c782d
commit
ec5463cf89
|
@ -26,7 +26,7 @@
|
||||||
* Date : 05/08/93
|
* Date : 05/08/93
|
||||||
* Author : Frederic Petrot <Frederic.Petrot@lip6.fr>
|
* Author : Frederic Petrot <Frederic.Petrot@lip6.fr>
|
||||||
* Modified by Czo <Olivier.Sirol@lip6.fr> 1997,98
|
* 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_
|
#ifndef _MLO_H_
|
||||||
|
@ -37,7 +37,7 @@ extern "C" {
|
||||||
#endif /* __cplusplus */
|
#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) ()
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
* Date : 05/08/93
|
* Date : 05/08/93
|
||||||
* Author : Frederic Petrot <Frederic.Petrot@lip6.fr>
|
* Author : Frederic Petrot <Frederic.Petrot@lip6.fr>
|
||||||
* Modified by Czo <Olivier.Sirol@lip6.fr> 1997,98
|
* 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_
|
#ifndef _MLU_H_
|
||||||
|
@ -37,7 +37,7 @@ extern "C" {
|
||||||
#endif /* __cplusplus */
|
#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) ()
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
* Date : 05/08/93
|
* Date : 05/08/93
|
||||||
* Author : Frederic Petrot <Frederic.Petrot@lip6.fr>
|
* Author : Frederic Petrot <Frederic.Petrot@lip6.fr>
|
||||||
* Modified by Czo <Olivier.Sirol@lip6.fr> 1997,98
|
* 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_
|
#ifndef _MPH_H_
|
||||||
|
@ -37,7 +37,7 @@ extern "C" {
|
||||||
#endif /* __cplusplus */
|
#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) ()
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
* Date : 05/08/93
|
* Date : 05/08/93
|
||||||
* Author : Frederic Petrot <Frederic.Petrot@lip6.fr>
|
* Author : Frederic Petrot <Frederic.Petrot@lip6.fr>
|
||||||
* Modified by Czo <Olivier.Sirol@lip6.fr> 1997,98
|
* 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_
|
#ifndef _MPU_H_
|
||||||
|
@ -37,7 +37,7 @@ extern "C" {
|
||||||
#endif /* __cplusplus */
|
#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) ()
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
* Date : 31/08/93
|
* Date : 31/08/93
|
||||||
* Author : Frederic Petrot <Frederic.Petrot@lip6.fr>
|
* Author : Frederic Petrot <Frederic.Petrot@lip6.fr>
|
||||||
* Modified by Czo <Olivier.Sirol@lip6.fr> 1997,98
|
* 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_
|
#ifndef _MUT_H_
|
||||||
|
@ -41,7 +41,7 @@ extern "C" {
|
||||||
#endif /* __cplusplus */
|
#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) ()
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* 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 *
|
* rcn : constantes, externs, and data-structures *
|
||||||
|
@ -45,6 +45,14 @@
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif /* __cplusplus */
|
#endif /* __cplusplus */
|
||||||
|
|
||||||
|
#ifndef __P
|
||||||
|
# if defined(__STDC__) || defined(__GNUC__) || defined(__cplusplus)
|
||||||
|
# define __P(x) x
|
||||||
|
# else
|
||||||
|
# define __P(x) ()
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/* layer of wire */
|
/* layer of wire */
|
||||||
#define RCN_WIRE_UNKNOW ((unsigned char) 0x00000001)
|
#define RCN_WIRE_UNKNOW ((unsigned char) 0x00000001)
|
||||||
#define RCN_WIRE_POLY ((unsigned char) 0x00000002)
|
#define RCN_WIRE_POLY ((unsigned char) 0x00000002)
|
||||||
|
|
Loading…
Reference in New Issue