From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id 8A7F0384CBAD; Tue, 28 Nov 2023 10:03:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8A7F0384CBAD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1701165780; bh=SZzQ8AqhEP9AV+oSU0S6DkFOHD869nPzDn0awP22GtA=; h=From:To:Subject:Date:From; b=YE9ZYlZDjh860tQ9sDcNlQmSIuRg1RZZRwaPCvcKf/zdJfgDfJttRaXrkRpB6pprc /ioaji600eW6XJuLpkIJAlu2lxHtJUMt+h3SskeKM3aFPxY91k9h9pbvDsJTW/3XEe HlYKlejhT2yOzcwGh62CO4eipZKSjgWLskpYqlyQ= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Corinna Vinschen To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin/main] Cygwin: fcntl.h: Use cdefs.h macros X-Act-Checkin: newlib-cygwin X-Git-Author: Corinna Vinschen X-Git-Refname: refs/heads/main X-Git-Oldrev: f3554bf8905bfca5fbe54e57a452196bd9499cea X-Git-Newrev: 23e9b5cf3c4ff4507eff8fb9fcf8d5cb15afc694 Message-Id: <20231128100300.8A7F0384CBAD@sourceware.org> Date: Tue, 28 Nov 2023 10:03:00 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3D23e9b5cf3c4= ff4507eff8fb9fcf8d5cb15afc694 commit 23e9b5cf3c4ff4507eff8fb9fcf8d5cb15afc694 Author: Corinna Vinschen AuthorDate: Sun Nov 26 15:41:41 2023 +0100 Commit: Corinna Vinschen CommitDate: Tue Nov 28 10:52:05 2023 +0100 Cygwin: fcntl.h: Use cdefs.h macros =20 Signed-off-by: Corinna Vinschen 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 =20 +#include #include + #define O_NDELAY _FNDELAY =20 /* F_LCK_MANDATORY: Request mandatory locks for this file descriptor. @@ -42,14 +44,11 @@ details. */ =20 #define __FALLOC_FL_TRUNCATE 0x0001 /* internal */ =20 -#ifdef __cplusplus -extern "C" { -#endif +__BEGIN_DECLS =20 extern int posix_fadvise (int, off_t, off_t, int); extern int posix_fallocate (int, off_t, off_t); -#ifdef __cplusplus -} -#endif + +__END_DECLS =20 #endif /* _FCNTL_H */