From 238a6434b5392dfb0cc4e9d7201cb91b341bafd4 Mon Sep 17 00:00:00 2001
From: Bruno Haible <bruno@clisp.org>
Date: Thu, 10 Dec 2009 14:08:47 +0100
Subject: [PATCH] stdio: Avoid syntax error in C++ mode.

---
 ChangeLog      | 5 +++++
 lib/stdio.in.h | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index d94e2f959e..1af09830c1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-12-09  Bruno Haible  <bruno@clisp.org>
+
+	Avoid syntax error in C++ mode.
+	* lib/stdio.in.h (rename): Don't use parameter name 'new'.
+
 2009-12-09  Bruno Haible  <bruno@clisp.org>
 
 	Use sed with option -e.
diff --git a/lib/stdio.in.h b/lib/stdio.in.h
index d0ffa59863..6ce1395153 100644
--- a/lib/stdio.in.h
+++ b/lib/stdio.in.h
@@ -448,7 +448,7 @@ extern int remove (const char *name);
 # if @REPLACE_RENAME@
 #  undef rename
 #  define rename rpl_rename
-extern int rename (const char *old, const char *new);
+extern int rename (const char *old_filename, const char *new_filename);
 # endif
 #elif defined GNULIB_POSIXCHECK
 # undef rename
-- 
2.30.2