summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libadhocutil/fileUtils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libadhocutil/fileUtils.h b/libadhocutil/fileUtils.h
index 9cc73cb..f272ddd 100644
--- a/libadhocutil/fileUtils.h
+++ b/libadhocutil/fileUtils.h
@@ -151,6 +151,7 @@ namespace AdHoc {
/// The file data.
void * const data;
+#ifdef __cpp_lib_string_view
/**
* Create a std::string_view of the mapped data.
*/
@@ -159,6 +160,7 @@ namespace AdHoc {
{
return std::basic_string_view<T>((const T *)data, st.st_size / sizeof(T));
}
+#endif
private:
DLL_PUBLIC void * setupMapInt(int flags) const;