public inbox for cygwin-cvs@sourceware.org help / color / mirror / Atom feed
From: Corinna Vinschen <corinna@sourceware.org> To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin/main] Cygwin: fcntl.h: Use cdefs.h macros Date: Tue, 28 Nov 2023 10:03:00 +0000 (GMT) [thread overview] Message-ID: <20231128100300.8A7F0384CBAD@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=23e9b5cf3c4ff4507eff8fb9fcf8d5cb15afc694 commit 23e9b5cf3c4ff4507eff8fb9fcf8d5cb15afc694 Author: Corinna Vinschen <corinna@vinschen.de> AuthorDate: Sun Nov 26 15:41:41 2023 +0100 Commit: Corinna Vinschen <corinna@vinschen.de> CommitDate: Tue Nov 28 10:52:05 2023 +0100 Cygwin: fcntl.h: Use cdefs.h macros Signed-off-by: Corinna Vinschen <corinna@vinschen.de> Diff: --- winsup/cygwin/include/fcntl.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/winsup/cygwin/include/fcntl.h b/winsup/cygwin/include/fcntl.h index de64d4f7c010..1ef51e50c575 100644 --- a/winsup/cygwin/include/fcntl.h +++ b/winsup/cygwin/include/fcntl.h @@ -9,7 +9,9 @@ details. */ #ifndef _FCNTL_H #define _FCNTL_H +#include <sys/cdefs.h> #include <sys/fcntl.h> + #define O_NDELAY _FNDELAY /* F_LCK_MANDATORY: Request mandatory locks for this file descriptor. @@ -42,14 +44,11 @@ details. */ #define __FALLOC_FL_TRUNCATE 0x0001 /* internal */ -#ifdef __cplusplus -extern "C" { -#endif +__BEGIN_DECLS extern int posix_fadvise (int, off_t, off_t, int); extern int posix_fallocate (int, off_t, off_t); -#ifdef __cplusplus -} -#endif + +__END_DECLS #endif /* _FCNTL_H */
reply other threads:[~2023-11-28 10:03 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20231128100300.8A7F0384CBAD@sourceware.org \ --to=corinna@sourceware.org \ --cc=cygwin-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).