Fix serial endian_access -fno-inline build
This commit is contained in:
parent
75b72dc8e9
commit
5124c510f8
|
@ -107,10 +107,15 @@ public:
|
||||||
* - native_endian: assume buffered data is native endian
|
* - native_endian: assume buffered data is native endian
|
||||||
* Copy regardless of host byte order
|
* Copy regardless of host byte order
|
||||||
*/
|
*/
|
||||||
static constexpr auto foreign_endian= tt::integral_constant<uint16_t, 0>{};
|
typedef tt::integral_constant<uint16_t, 0> foreign_endian_type;
|
||||||
static constexpr auto little_endian = tt::integral_constant<uint16_t, 255>{};
|
typedef tt::integral_constant<uint16_t, 255> little_endian_type;
|
||||||
static constexpr auto big_endian = tt::integral_constant<uint16_t, 256>{};
|
typedef tt::integral_constant<uint16_t, 256> big_endian_type;
|
||||||
static constexpr auto native_endian = tt::integral_constant<uint16_t, 257>{};
|
typedef tt::integral_constant<uint16_t, 257> native_endian_type;
|
||||||
|
|
||||||
|
static constexpr auto foreign_endian = foreign_endian_type{};
|
||||||
|
static constexpr auto little_endian = little_endian_type{};
|
||||||
|
static constexpr auto big_endian = big_endian_type{};
|
||||||
|
static constexpr auto native_endian = native_endian_type{};
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Implementation details - avoid namespace pollution */
|
/* Implementation details - avoid namespace pollution */
|
||||||
|
|
|
@ -64,6 +64,11 @@ static void multi_send_robot_position_sub(const vobjptridx_t objnum, int now);
|
||||||
static void multi_send_release_robot(const vobjptridx_t objnum);
|
static void multi_send_release_robot(const vobjptridx_t objnum);
|
||||||
static void multi_delete_controlled_robot(const vobjptridx_t objnum);
|
static void multi_delete_controlled_robot(const vobjptridx_t objnum);
|
||||||
|
|
||||||
|
constexpr serial::endian_access::foreign_endian_type serial::endian_access::foreign_endian;
|
||||||
|
constexpr serial::endian_access::little_endian_type serial::endian_access::little_endian;
|
||||||
|
constexpr serial::endian_access::big_endian_type serial::endian_access::big_endian;
|
||||||
|
constexpr serial::endian_access::native_endian_type serial::endian_access::native_endian;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Code for controlling robots in multiplayer games
|
// Code for controlling robots in multiplayer games
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in a new issue