Mercurial > hg > octave-kai > gnulib-hg
changeset 10707:6dbc82e85edc
doc/gnulib.texi (Header files): Add note about C++ problems.
author | Simon Josefsson <simon@josefsson.org> |
---|---|
date | Fri, 24 Oct 2008 10:18:39 +0200 |
parents | 5a35e8f56744 |
children | 829e51d54702 |
files | ChangeLog doc/gnulib.texi |
diffstat | 2 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-10-24 Simon Josefsson <simon@josefsson.org> + + * doc/gnulib.texi (Header files): Add note about C++ problems. + Explained by Bruno Haible <bruno@clisp.org>. + 2008-10-23 Bruno Haible <bruno@clisp.org> Define a dummy SA_NODEFER macro on Interix.
--- a/doc/gnulib.texi +++ b/doc/gnulib.texi @@ -199,6 +199,11 @@ your header file as something available for C programs only, or for C and C++ programs alike. +Note that putting a @code{#include} in an @code{extern "C" @{ ... @}} +block yields a syntax error in C++ mode on some platforms. For this +reason, it is recommended to place the @code{#include} before the +@code{extern "C"} block. + @subheading Include ordering When writing a gnulib module, or even in general, a good way to order