Index: extern.h =================================================================== RCS file: /home/cvs/mdocml/texi2mdoc/extern.h,v retrieving revision 1.16 retrieving revision 1.17 diff -u -p -r1.16 -r1.17 --- extern.h 25 Feb 2015 14:49:14 -0000 1.16 +++ extern.h 25 Feb 2015 19:45:59 -0000 1.17 @@ -1,4 +1,4 @@ -/* $Id: extern.h,v 1.16 2015/02/25 14:49:14 kristaps Exp $ */ +/* $Id: extern.h,v 1.17 2015/02/25 19:45:59 kristaps Exp $ */ /* * Copyright (c) 2015 Kristaps Dzonsons * @@ -16,6 +16,21 @@ */ #ifndef EXTERN_H #define EXTERN_H + +#if !defined(__BEGIN_DECLS) +# ifdef __cplusplus +# define __BEGIN_DECLS extern "C" { +# else +# define __BEGIN_DECLS +# endif +#endif +#if !defined(__END_DECLS) +# ifdef __cplusplus +# define __END_DECLS } +# else +# define __END_DECLS +# endif +#endif /* * This defines each one of the Texinfo commands that we understand.