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. 2
      src/fs_attr.cpp
  2. 2
      src/fs_copy_file_range.cpp
  3. 2
      src/fs_fadvise.cpp
  4. 2
      src/fs_ficlone.cpp
  5. 3
      src/fs_futimens.hpp
  6. 2
      src/fs_futimesat.cpp
  7. 2
      src/fs_sendfile.cpp
  8. 3
      src/fs_utimensat.hpp
  9. 2
      src/ugid.hpp

2
src/fs_attr.cpp

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

2
src/fs_copy_file_range.cpp

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

2
src/fs_fadvise.cpp

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

2
src/fs_ficlone.cpp

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

3
src/fs_futimens.hpp

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

2
src/fs_futimesat.cpp

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

2
src/fs_sendfile.cpp

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

3
src/fs_utimensat.hpp

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

2
src/ugid.hpp

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