From 47a0ae90efca781f37e33bcb11b03ecba5d4c3cc Mon Sep 17 00:00:00 2001 From: caxanga334 <10157643+caxanga334@users.noreply.github.com> Date: Mon, 27 Jan 2025 22:52:52 -0300 Subject: [PATCH] Remove Deprecated 'register' Keyword (#300) Fixes compile errors when compiling with C++17 or better. --- public/mathlib/mathlib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/mathlib/mathlib.h b/public/mathlib/mathlib.h index 4769bbab..af50820a 100644 --- a/public/mathlib/mathlib.h +++ b/public/mathlib/mathlib.h @@ -328,7 +328,7 @@ void inline SinCos( float radians, float *sine, float *cosine ) fstp DWORD PTR [eax] } #elif defined( _LINUX ) || defined ( __APPLE__ ) - register double __cosr, __sinr; + double __cosr, __sinr; __asm __volatile__ ("fsincos" : "=t" (__cosr), "=u" (__sinr) : "0" (radians));