From 09c901655db3bb42d2aac4b506846b18833d777c Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Tue, 7 Mar 2023 15:23:51 -0400 Subject: global: Completly disable inlining This is because it looks more, and more clear that the entire codebase was compiled without inlining. Likely to reduce code size from all the byteswap functions, only present on the GameCube version. --- include/pso/protocol.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'include/pso/protocol.h') diff --git a/include/pso/protocol.h b/include/pso/protocol.h index 697f6b0..140a024 100644 --- a/include/pso/protocol.h +++ b/include/pso/protocol.h @@ -5,13 +5,14 @@ #include "pso/macros.h" #include +extern void bswap_16(u16 *val); +extern void bswap_32(u32 *val); + struct packet_header { u8 command; u8 flags; u16 size; - void bswap(); + void bswap() { bswap_16(&size); }; } __packed__; -extern void bswap_16(u16 *val); -extern void bswap_32(u32 *val); #endif -- cgit v1.2.3-13-gbd6f