diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2023-11-26 17:41:41 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2023-11-28 12:52:05 +0300 |
commit | 23e9b5cf3c4ff4507eff8fb9fcf8d5cb15afc694 (patch) | |
tree | cd5f789933825a8aa5ce0b1d5f34a9ede0cdbbc7 /winsup | |
parent | f3554bf8905bfca5fbe54e57a452196bd9499cea (diff) |
Cygwin: fcntl.h: Use cdefs.h macros
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygwin/include/fcntl.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/winsup/cygwin/include/fcntl.h b/winsup/cygwin/include/fcntl.h index de64d4f7c..1ef51e50c 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 */ |