Bruno Haible <[EMAIL PROTECTED]> writes: > Simon Josefsson wrote: >> Do you know which platforms are affected in this way? > > At least glibc systems. with g++ versions from 3.3 to 4.2.
Thanks for the examples, I added them to the manual. /Simon >From 13a47610f12088e6bcf5a3ea90f049342035fbc9 Mon Sep 17 00:00:00 2001 From: Simon Josefsson <[EMAIL PROTECTED]> Date: Sun, 26 Oct 2008 09:31:44 +0100 Subject: [PATCH] doc/gnulib.texi (Header files): C++ fixes, based on Bruno's findings. --- ChangeLog | 5 +++++ doc/gnulib.texi | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8eb9366..8cea4bb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-10-26 Simon Josefsson <[EMAIL PROTECTED]> + + * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's + findings. + 2008-10-25 Ben Pfaff <[EMAIL PROTECTED]> Bruno Haible <[EMAIL PROTECTED]> diff --git a/doc/gnulib.texi b/doc/gnulib.texi index e98f124..1d9cf60 100644 --- a/doc/gnulib.texi +++ b/doc/gnulib.texi @@ -200,9 +200,10 @@ 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 [EMAIL PROTECTED] "C"} block. +block yields a syntax error in C++ mode on some platforms (e.g., glibc +systems with g++ v3.3 to v4.2, AIX, OSF/1, IRIX). For this reason, it +is recommended to place the @code{#include} before the @code{extern +"C"} block. @subheading Include ordering -- 1.5.6.5