aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/deps/rpclib/include/rpc/compatibility.h
blob: 19baa201c9d7433aeffe4ca8aa29157483d8fd82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once

#ifndef COMPATIBILITY_H_PODKJ3
#define COMPATIBILITY_H_PODKJ3

#ifndef _MSC_VER

#define RPCLIB_NORETURN [[noreturn]]
#define RPCLIB_CONSTEXPR constexpr
#define RPCLIB_FINAL final

#else

#define RPCLIB_NORETURN __declspec(noreturn)
#define RPCLIB_CONSTEXPR const // bad replacement, but gets the job done
#define RPCLIB_FINAL

#endif // !_MSC_VER

#endif // COMPATIBILITY_H_PODKJ3