Skip to content

Commit e5bb2c2

Browse files
committed
libstdc++-v3: Use stdio in random.cc when using cstdio=stdio_pure
This removes a POSIX dependency from the library. Signed-off-by: Keith Packard <[email protected]>
1 parent d2d7900 commit e5bb2c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libstdc++-v3/src/c++11/random.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
#include <cstdio>
4646
#include <cctype> // For std::isdigit.
4747

48-
#if defined _GLIBCXX_HAVE_UNISTD_H && defined _GLIBCXX_HAVE_FCNTL_H
48+
#if defined _GLIBCXX_HAVE_UNISTD_H && defined _GLIBCXX_HAVE_FCNTL_H && !defined _GLIBCXX_USE_STDIO_PURE
4949
# include <unistd.h>
5050
# include <fcntl.h>
5151
// Use POSIX open, close, read etc. instead of ISO fopen, fclose, fread

0 commit comments

Comments
 (0)