]>
git.proxmox.com Git - ceph.git/blob - ceph/src/pmdk/src/include/pmemcompat.h
1 /* SPDX-License-Identifier: BSD-3-Clause */
2 /* Copyright 2016-2020, Intel Corporation */
5 * pmemcompat.h -- compatibility layer for libpmem* libraries
12 /* for backward compatibility */
14 #pragma message( "NVML_UTF8_API macro is obsolete, please use PMDK_UTF8_API instead." )
27 * XXX: this code will not work on windows if our library is included in
30 #if defined(__cplusplus) && defined(_MSC_VER) && !defined(__typeof__)
31 #include <type_traits>
33 * These templates are used to remove a type reference(T&) which, in some
34 * cases, is returned by decltype
55 } /* namespace detail */
57 } /* namespace pmem */
59 #define __typeof__(p) pmem::detail::get_type<decltype(p)>::type