]> sourceware.org Git - newlib-cygwin.git/commitdiff
Cygwin: fcntl.h: Use cdefs.h macros
authorCorinna Vinschen <corinna@vinschen.de>
Sun, 26 Nov 2023 14:41:41 +0000 (15:41 +0100)
committerCorinna Vinschen <corinna@vinschen.de>
Tue, 28 Nov 2023 09:52:05 +0000 (10:52 +0100)
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
winsup/cygwin/include/fcntl.h

index de64d4f7c01098278e21db9c0a0b15b4e67007b0..1ef51e50c57516f8ae2a85d9b4be79d45e7f8417 100644 (file)
@@ -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 */
This page took 0.027852 seconds and 5 git commands to generate.