2010-06-08 Jeff Johnston <jjohnstn@redhat.com>

* libc/include/wordexp.h: Add __cplusplus wrapper.
This commit is contained in:
Jeff Johnston 2010-06-08 21:47:57 +00:00
parent 58d6976a6e
commit b5efabb284
2 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2010-06-08 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/wordexp.h: Add __cplusplus wrapper.
2010-06-08 Jeff Johnston <jjohnstn@redhat.com> 2010-06-08 Jeff Johnston <jjohnstn@redhat.com>
* configure.in: Add test for enable-newlib-register-fini * configure.in: Add test for enable-newlib-register-fini

View File

@ -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 * Permission to use, copy, modify, and distribute this software
* is freely granted, provided that this notice is preserved. * is freely granted, provided that this notice is preserved.
@ -9,6 +9,10 @@
#include <sys/types.h> #include <sys/types.h>
#ifdef __cplusplus
extern "C" {
#endif
struct _wordexp_t struct _wordexp_t
{ {
size_t we_wordc; /* Count of words matched by words. */ size_t we_wordc; /* Count of words matched by words. */
@ -42,4 +46,8 @@ enum {
int wordexp(const char *, wordexp_t *, int); int wordexp(const char *, wordexp_t *, int);
void wordfree(wordexp_t *); void wordfree(wordexp_t *);
#ifdef __cplusplus
}
#endif
#endif /* _WORDEXP_H_ */ #endif /* _WORDEXP_H_ */