From b11cf48853bc4eccde60bc82180025f0797fa823 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Sun, 3 Aug 2025 15:29:48 +0100 Subject: 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. --- src/l4d1democompat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/l4d1democompat.c') 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 -- cgit v1.2.3-54-g00ecf