[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: extern "C" { }
From: |
Simon Josefsson |
Subject: |
Re: extern "C" { } |
Date: |
Sun, 26 Oct 2008 09:32:21 +0100 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/22.2 (gnu/linux) |
Bruno Haible <address@hidden> 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 <address@hidden>
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 <address@hidden>
+
+ * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
+ findings.
+
2008-10-25 Ben Pfaff <address@hidden>
Bruno Haible <address@hidden>
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
address@hidden "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
- [PATCH] random_r: new module, Jim Meyering, 2008/10/22
- Re: [PATCH] random_r: new module, Bruno Haible, 2008/10/22
- Re: [PATCH] random_r: new module, Simon Josefsson, 2008/10/23
- Re: [PATCH] random_r: new module, Richard W.M. Jones, 2008/10/23
- Re: [PATCH] random_r: new module, Simon Josefsson, 2008/10/23
- Re: [PATCH] random_r: new module, Simon Josefsson, 2008/10/24
- Re: [PATCH] random_r: new module, Jim Meyering, 2008/10/24
- Re: [PATCH] random_r: new module, Bruno Haible, 2008/10/24