Skip to content

Commit

Permalink
Remove unnecessary gnu internal header file. (see boostorg#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
soroshsabz committed Jul 31, 2020
1 parent a1b3b50 commit 2b9e932
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
7 changes: 2 additions & 5 deletions src/operations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,8 @@
# include <utime.h>
# endif
# ifdef __linux__
# ifdef __GLIBC__
# include <gnu/libc-version.h>
# if __GLIBC_PREREQ(2, 27)
# define BOOST_HAS_NATIVE_STATX 1
# endif
# if defined(__GLIBC__) && defined(__GLIBC_PREREQ) && __GLIBC_PREREQ(2, 27)
# define BOOST_HAS_NATIVE_STATX 1
# endif
# endif
# include "limits.h"
Expand Down
6 changes: 1 addition & 5 deletions test/operations_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ using std::endl;
#include <ctime>
#include <cstdlib> // for system(), getenv(), etc.

#if defined(BOOST_POSIX_API) && defined(__linux__)
# include <linux/version.h>
#endif

#ifdef BOOST_WINDOWS_API
# include <windows.h>

Expand Down Expand Up @@ -1828,7 +1824,7 @@ namespace
create_file(f1x, "foobar2");

# ifdef BOOST_POSIX_API
# if !(defined(__linux__) && __GLIBC_PREREQ(2, 27))
# if !(defined(__linux__) && defined(__GLIBC__) && defined(__GLIBC_PREREQ) && __GLIBC_PREREQ(2, 27))
BOOST_TEST(CHECK_EXCEPTION([f1x]() -> void {fs::creation_time(f1x);}, BOOST_ERROR_NOT_SUPPORTED));
# endif
# else
Expand Down

0 comments on commit 2b9e932

Please sign in to comment.