Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2010-06-09 01:47:57 +0400
committerJeff Johnston <jjohnstn@redhat.com>2010-06-09 01:47:57 +0400
commitb5efabb28439fff7944ecfad19ea45651c836b94 (patch)
tree4637cac38f709c9fb585b629a584eace9d7d114d /newlib
parent58d6976a6e8cf1af0cf2747d5b8caa05eb765487 (diff)
2010-06-08 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/wordexp.h: Add __cplusplus wrapper.
Diffstat (limited to 'newlib')
-rw-r--r--newlib/ChangeLog4
-rw-r--r--newlib/libc/include/wordexp.h10
2 files changed, 13 insertions, 1 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index b0d12cf52..cf840ee35 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,5 +1,9 @@
2010-06-08 Jeff Johnston <jjohnstn@redhat.com>
+ * libc/include/wordexp.h: Add __cplusplus wrapper.
+
+2010-06-08 Jeff Johnston <jjohnstn@redhat.com>
+
* configure.in: Add test for enable-newlib-register-fini
to set the _WANT_REGISTER_FINI flag.
* configure: Regenerated.
diff --git a/newlib/libc/include/wordexp.h b/newlib/libc/include/wordexp.h
index aede5ad47..8f87681a9 100644
--- a/newlib/libc/include/wordexp.h
+++ b/newlib/libc/include/wordexp.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 2002 by Red Hat, Incorporated. All rights reserved.
+/* Copyright (C) 2002, 2010 by Red Hat, Incorporated. All rights reserved.
*
* Permission to use, copy, modify, and distribute this software
* is freely granted, provided that this notice is preserved.
@@ -9,6 +9,10 @@
#include <sys/types.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct _wordexp_t
{
size_t we_wordc; /* Count of words matched by words. */
@@ -42,4 +46,8 @@ enum {
int wordexp(const char *, wordexp_t *, int);
void wordfree(wordexp_t *);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _WORDEXP_H_ */