Browse Source

add #warning to make it more obvious what versions of functions are used

pull/814/head
Antonio SJ Musumeci 4 years ago
parent
commit
7fd629ebf3
  1. 6
      src/fs_attr.cpp
  2. 6
      src/fs_copy_file_range.cpp
  3. 6
      src/fs_fadvise.cpp
  4. 6
      src/fs_ficlone.cpp
  5. 9
      src/fs_futimens.hpp
  6. 6
      src/fs_futimesat.cpp
  7. 6
      src/fs_sendfile.cpp
  8. 9
      src/fs_utimensat.hpp
  9. 2
      src/ugid.hpp

6
src/fs_attr.cpp

@ -15,7 +15,9 @@
*/
#ifdef __linux__
# include "fs_attr_linux.icpp"
#warning "using fs_attr_linux.icpp"
#include "fs_attr_linux.icpp"
#else
# include "fs_attr_unsupported.icpp"
#warning "using fs_attr_unsupported.icpp"
#include "fs_attr_unsupported.icpp"
#endif

6
src/fs_copy_file_range.cpp

@ -17,7 +17,9 @@
*/
#ifdef __linux__
# include "fs_copy_file_range_linux.icpp"
#warning "using fs_copy_file_range_linux.icpp"
#include "fs_copy_file_range_linux.icpp"
#else
# include "fs_copy_file_range_unsupported.icpp"
#warning "using fs_copy_file_range_unsupported.icpp"
#include "fs_copy_file_range_unsupported.icpp"
#endif

6
src/fs_fadvise.cpp

@ -17,9 +17,11 @@
#include <fcntl.h>
#if _XOPEN_SOURCE >= 600 || _POSIX_C_SOURCE >= 200112L
# include "fs_fadvise_posix.icpp"
#warning "using fs_fadvise_posix.icpp"
#include "fs_fadvise_posix.icpp"
#else
# include "fs_fadvise_unsupported.icpp"
#warning "using fs_fadvise_unsupported.icpp"
#include "fs_fadvise_unsupported.icpp"
#endif
#ifndef POSIX_FADV_NORMAL

6
src/fs_ficlone.cpp

@ -17,7 +17,9 @@
*/
#ifdef __linux__
# include "fs_ficlone_linux.icpp"
#warning "using fs_ficlone_linux.icpp"
#include "fs_ficlone_linux.icpp"
#else
# include "fs_ficlone_unsupported.icpp"
#warning "using fs_ficlone_unsupported.icpp"
#include "fs_ficlone_unsupported.icpp"
#endif

9
src/fs_futimens.hpp

@ -23,11 +23,14 @@
#include <sys/stat.h>
#ifdef __linux__
# include "fs_futimens_linux.hpp"
#warning "using fs_futimens_linux.hpp"
#include "fs_futimens_linux.hpp"
#elif __FreeBSD__ >= 11
# include "fs_futimens_freebsd_11.hpp"
#warning "using fs_futimens_freebsd_11.hpp"
#include "fs_futimens_freebsd_11.hpp"
#else
# include "fs_futimens_generic.hpp"
#warning "using fs_futimens_generic.hpp"
#include "fs_futimens_generic.hpp"
#endif
namespace fs

6
src/fs_futimesat.cpp

@ -17,7 +17,9 @@
*/
#if __APPLE__
# include "fs_futimesat_osx.icpp"
#warning "using fs_futimesat_osx.icpp"
#include "fs_futimesat_osx.icpp"
#else
# include "fs_futimesat_generic.icpp"
#warning "using fs_futimesat_generic.icpp"
#include "fs_futimesat_generic.icpp"
#endif

6
src/fs_sendfile.cpp

@ -15,7 +15,9 @@
*/
#ifdef __linux__
# include "fs_sendfile_linux.icpp"
#warning "using fs_sendfile_linux.icpp"
#include "fs_sendfile_linux.icpp"
#else
# include "fs_sendfile_unsupported.icpp"
#warning "using fs_sendfile_unsupported.icpp"
#include "fs_sendfile_unsupported.icpp"
#endif

9
src/fs_utimensat.hpp

@ -19,9 +19,12 @@
#pragma once
#ifdef __linux__
# include "fs_utimensat_linux.hpp"
#warning "using fs_utimensat_linux.hpp"
#include "fs_utimensat_linux.hpp"
#elif __FreeBSD__
# include "fs_utimensat_freebsd.hpp"
#warning "using fs_utimensat_freebsd.hpp"
#include "fs_utimensat_freebsd.hpp"
#else
# include "fs_utimensat_generic.hpp"
#warning "using fs_utimensat_generic.hpp"
#include "fs_utimensat_generic.hpp"
#endif

2
src/ugid.hpp

@ -28,7 +28,9 @@ namespace ugid
}
#if defined __linux__ and UGID_USE_RWLOCK == 0
#warning "using ugid_linux.hpp"
#include "ugid_linux.hpp"
#else
#warning "using ugid_rwlock.hpp"
#include "ugid_rwlock.hpp"
#endif
Loading…
Cancel
Save