From 9339f1c45bfa4c35973f3caa499699e1766db31b Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Tue, 3 Apr 2007 21:24:29 +0000 Subject: [PATCH] properly make inlines static Originally committed to SVN as r989. --- aegisub/utils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aegisub/utils.h b/aegisub/utils.h index 6a7a930a5..9c3a82f70 100644 --- a/aegisub/utils.h +++ b/aegisub/utils.h @@ -82,7 +82,7 @@ int SmallestPowerOf2(int x); /////////// // Inlines -inline void IntSwap(int &a,int &b) { +static inline void IntSwap(int &a,int &b) { int c = a; a = b; b = c; @@ -92,7 +92,7 @@ inline void IntSwap(int &a,int &b) { ////////////////////////// // Clamp integer to range // Code taken from http://bob.allegronetwork.com/prog/tricks.html#clamp -FORCEINLINE int ClampSignedInteger32(int x,int min,int max) { +FORCEINLINE static int ClampSignedInteger32(int x,int min,int max) { x -= min; x &= (~x) >> 31; x += min;