aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/deps/rpclib/include/rpc/compatibility.h
diff options
context:
space:
mode:
authorAndrej Rode <andrej.rode@ettus.com>2017-04-03 18:49:58 -0700
committerMartin Braun <martin.braun@ettus.com>2017-12-22 15:03:45 -0800
commit53795c74aead4e6021bc788b788f8ed5b4a0166d (patch)
tree45e4075f3d8ffdee7dff7c72dd665f5c5b0c746c /host/lib/deps/rpclib/include/rpc/compatibility.h
parent6a12add1560545438e1bebc05efbafd05aace4f9 (diff)
downloaduhd-53795c74aead4e6021bc788b788f8ed5b4a0166d.tar.gz
uhd-53795c74aead4e6021bc788b788f8ed5b4a0166d.tar.bz2
uhd-53795c74aead4e6021bc788b788f8ed5b4a0166d.zip
uhd: add cut-down rpclib source tree and import tool
Diffstat (limited to 'host/lib/deps/rpclib/include/rpc/compatibility.h')
-rw-r--r--host/lib/deps/rpclib/include/rpc/compatibility.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/host/lib/deps/rpclib/include/rpc/compatibility.h b/host/lib/deps/rpclib/include/rpc/compatibility.h
new file mode 100644
index 000000000..19baa201c
--- /dev/null
+++ b/host/lib/deps/rpclib/include/rpc/compatibility.h
@@ -0,0 +1,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