* lib/safe-read.h [C++]: Wrap declarations in extern "C".
authorJim Meyering <jim@meyering.net>
Sat, 23 Dec 2006 21:31:59 +0000 (21:31 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 23 Dec 2006 21:31:59 +0000 (21:31 +0000)
From Bruno Haible.

ChangeLog
lib/safe-read.h

index a00a191d2b600783b90e4ac22475c8bf56ba5c18..1149ee45b2bcbebc6076246bcc321af03345339f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2006-12-23  Bruno Haible  <bruno@clisp.org>
+
+       * lib/safe-read.h [C++]: Wrap declarations in extern "C".
+
 2006-12-23  Bruno Haible  <bruno@clisp.org>
 
        * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
index 9f8a59bd4f2dac08025fe9ceeffbafa1d55407f6..3451955ad4ff40e11cd846090caff89496722cfd 100644 (file)
@@ -1,5 +1,5 @@
 /* An interface to read() that retries after interrupts.
-   Copyright (C) 2002 Free Software Foundation, Inc.
+   Copyright (C) 2002, 2006 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
 
 #include <stddef.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+
 #define SAFE_READ_ERROR ((size_t) -1)
 
 /* Read up to COUNT bytes at BUF from descriptor FD, retrying if interrupted.
    Return the actual number of bytes read, zero for EOF, or SAFE_READ_ERROR
    upon error.  */
 extern size_t safe_read (int fd, void *buf, size_t count);
+
+
+#ifdef __cplusplus
+}
+#endif