Skip to content

Commit 3578a4d

Browse files
keith-packardnashif
authored andcommitted
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 341c1c7 commit 3578a4d

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
@@ -44,7 +44,7 @@
4444
#include <cstdio>
4545
#include <cctype> // For std::isdigit.
4646

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

0 commit comments

Comments
 (0)