summaryrefslogtreecommitdiff
path: root/lib/fwriteerror.h
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2006-11-06 12:55:16 +0000
committerBruno Haible <bruno@clisp.org>2006-11-06 12:55:16 +0000
commit2c4a44a5d092da2f1c2864b27ca382f77faeb63d (patch)
treeea85b0cd2cdd11804609e87c5ac39ac88ba36b69 /lib/fwriteerror.h
parentc437773f09dd9684683ae46730c1224e51509177 (diff)
downloadgnulib-2c4a44a5d092da2f1c2864b27ca382f77faeb63d.tar.gz
Avoid name mangling in C++ mode.
Diffstat (limited to 'lib/fwriteerror.h')
-rw-r--r--lib/fwriteerror.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/fwriteerror.h b/lib/fwriteerror.h
index ebbe1be6c9..24d8e0ad44 100644
--- a/lib/fwriteerror.h
+++ b/lib/fwriteerror.h
@@ -40,6 +40,10 @@
#include <stdio.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* Write out the not yet written buffered contents of the stream FP, close
the stream FP, and test whether some error occurred on the stream FP.
FP must be a stream opened for writing.
@@ -53,3 +57,7 @@ extern int fwriteerror (FILE *fp);
/* Likewise, but don't consider it an error if FP has an invalid file
descriptor and no output was done to FP. */
extern int fwriteerror_no_ebadf (FILE *fp);
+
+#ifdef __cplusplus
+}
+#endif