libcarla/include/system/rpc/compatibility.h

21 lines
396 B
C
Raw Normal View History

2024-10-18 13:19:59 +08:00
#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