public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Fix missing extern C statement
@ 2022-09-26 17:20 kho237115
  2022-09-26 17:49 ` Jeff Johnston
  0 siblings, 1 reply; 2+ messages in thread
From: kho237115 @ 2022-09-26 17:20 UTC (permalink / raw)
  To: newlib; +Cc: Markus B. Moessner

From: "Markus B. Moessner" <kho237115@gmx.de>

---
 newlib/libc/include/sys/resource.h | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/newlib/libc/include/sys/resource.h b/newlib/libc/include/sys/resource.h
index b99506bd8..c0a0d2019 100644
--- a/newlib/libc/include/sys/resource.h
+++ b/newlib/libc/include/sys/resource.h
@@ -1,6 +1,10 @@
 #ifndef _SYS_RESOURCE_H_
 #define _SYS_RESOURCE_H_

+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #include <sys/time.h>

 #define	RUSAGE_SELF	0		/* calling process */
@@ -13,5 +17,8 @@ struct rusage {

 int	getrusage (int, struct rusage*);

+#ifdef __cplusplus
+}
 #endif
+#endif /* !_SYS_RESOURCE_H_ */

--
2.20.1.windows.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Fix missing extern C statement
  2022-09-26 17:20 [PATCH] Fix missing extern C statement kho237115
@ 2022-09-26 17:49 ` Jeff Johnston
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Johnston @ 2022-09-26 17:49 UTC (permalink / raw)
  To: kho237115; +Cc: Newlib

[-- Attachment #1: Type: text/plain, Size: 866 bytes --]

Pushed to master.

Regards,

-- Jeff J.

On Mon, Sep 26, 2022 at 1:20 PM <kho237115@gmx.de> wrote:

> From: "Markus B. Moessner" <kho237115@gmx.de>
>
> ---
>  newlib/libc/include/sys/resource.h | 7 +++++++
>  1 file changed, 7 insertions(+)
>
> diff --git a/newlib/libc/include/sys/resource.h
> b/newlib/libc/include/sys/resource.h
> index b99506bd8..c0a0d2019 100644
> --- a/newlib/libc/include/sys/resource.h
> +++ b/newlib/libc/include/sys/resource.h
> @@ -1,6 +1,10 @@
>  #ifndef _SYS_RESOURCE_H_
>  #define _SYS_RESOURCE_H_
>
> +#ifdef __cplusplus
> +extern "C" {
> +#endif
> +
>  #include <sys/time.h>
>
>  #define        RUSAGE_SELF     0               /* calling process */
> @@ -13,5 +17,8 @@ struct rusage {
>
>  int    getrusage (int, struct rusage*);
>
> +#ifdef __cplusplus
> +}
>  #endif
> +#endif /* !_SYS_RESOURCE_H_ */
>
> --
> 2.20.1.windows.1
>
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-09-26 17:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-26 17:20 [PATCH] Fix missing extern C statement kho237115
2022-09-26 17:49 ` Jeff Johnston

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).