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

This commit is contained in:
Antonio SJ Musumeci 2020-08-18 18:40:40 -04:00
parent 2fe20b888e
commit 7fd629ebf3
9 changed files with 38 additions and 18 deletions

View file

@ -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