aboutsummaryrefslogtreecommitdiff
path: root/src/l4d1democompat.c
diff options
context:
space:
mode:
authorGravatar Michael Smith <mikesmiffy128@gmail.com> 2025-08-03 15:29:48 +0100
committerGravatar Michael Smith <mikesmiffy128@gmail.com> 2025-08-03 15:29:48 +0100
commitb11cf48853bc4eccde60bc82180025f0797fa823 (patch)
tree7244ab889590066ff2a26ba3c1f475e7dae79130 /src/l4d1democompat.c
parent9853d19b4de3e66138da8b3e66ccdaea356ea35b (diff)
downloadsst-b11cf48853bc4eccde60bc82180025f0797fa823.tar.gz
sst-b11cf48853bc4eccde60bc82180025f0797fa823.zip
Use shorter spellings of __asm and __attribute
Turns out, there's no need for the trailing underscores. Plus, glibc does some stupid stuff with __attribute__ for non-GCC compilers. Not that that matters here, but it seems like a good practice just to use the forms that never have such problems. And it's shorter too.
Diffstat (limited to 'src/l4d1democompat.c')
-rw-r--r--src/l4d1democompat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/l4d1democompat.c b/src/l4d1democompat.c
index 1d27984..4b84dd3 100644
--- a/src/l4d1democompat.c
+++ b/src/l4d1democompat.c
@@ -115,14 +115,14 @@ static void VCALLCONV hook_ReadDemoHeader(struct CDemoFile *this) {
}
#if defined(__clang__)
-__attribute__((naked))
+__attribute((naked))
#elif defined(_MSC_VER)
#error Inadequate inline assembly syntax, use Clang instead.
#else
#error No way to do naked functions! We only support Clang at the moment.
#endif
static int hook_midpoint() {
- __asm__ volatile (
+ __asm volatile (
"push eax\n"
"mov eax, %1\n"
"mov eax, [eax]\n" // dereference this_protocol