* modules/stdio-windows: New file, based on modules/stdio-h.
* modules/stdio-h: Simplify accordingly.
(Depends-on): Add stdio-windows.
+2025-11-06 Bruno Haible <bruno@clisp.org>
+
+ stdio-windows: New module.
+ * modules/stdio-windows: New file, based on modules/stdio-h.
+ * modules/stdio-h: Simplify accordingly.
+ (Depends-on): Add stdio-windows.
+
2025-11-05 Bruno Haible <bruno@clisp.org>
acl-permissions: Don't use AC_REPLACE_FUNCS.
Files:
lib/stdio.in.h
-lib/stdio-consolesafe.c
lib/stdio-read.c
lib/stdio-write.c
m4/stdio_h.m4
ssize_t
stddef-h
sys_types-h
-stdckdint-h
-fseterr
+stdio-windows
configure.ac-early:
gl_STDIO_H_EARLY
gl_STDIO_H
gl_STDIO_H_REQUIRE_DEFAULTS
AC_PROG_MKDIR_P
-USES_MSVCRT=0
-case "$host_os" in
- mingw* | windows*)
- AC_EGREP_CPP([Special], [
-#ifndef _UCRT
- Special
-#endif
- ],
- [USES_MSVCRT=1])
- ;;
-esac
-gl_CONDITIONAL([GL_COND_OBJ_STDIO_CONSOLESAFE], [test $USES_MSVCRT = 1])
gl_CONDITIONAL([GL_COND_OBJ_STDIO_READ], [test $REPLACE_STDIO_READ_FUNCS = 1])
gl_CONDITIONAL([GL_COND_OBJ_STDIO_WRITE], [test $REPLACE_STDIO_WRITE_FUNCS = 1])
$(AM_V_at)mv $@-t3 $@
MOSTLYCLEANFILES += stdio.h stdio.h-t1 stdio.h-t2 stdio.h-t3
-if GL_COND_OBJ_STDIO_CONSOLESAFE
-lib_SOURCES += stdio-consolesafe.c
-endif
if GL_COND_OBJ_STDIO_READ
lib_SOURCES += stdio-read.c
endif
--- /dev/null
+Description:
+Auxiliary module for stdio.h on native Windows.
+
+Files:
+lib/stdio-consolesafe.c
+
+Depends-on:
+stdio-h
+stdckdint-h
+fseterr
+
+configure.ac:
+AC_REQUIRE([AC_CANONICAL_HOST])
+USES_MSVCRT=0
+case "$host_os" in
+ mingw* | windows*)
+ AC_EGREP_CPP([Special], [
+#ifndef _UCRT
+ Special
+#endif
+ ],
+ [USES_MSVCRT=1])
+ ;;
+esac
+gl_CONDITIONAL([GL_COND_OBJ_STDIO_CONSOLESAFE], [test $USES_MSVCRT = 1])
+
+Makefile.am:
+if GL_COND_OBJ_STDIO_CONSOLESAFE
+lib_SOURCES += stdio-consolesafe.c
+endif
+
+Include:
+<stdio.h>
+
+License:
+LGPLv2+
+
+Maintainer:
+all