Commit 6ffcea90 authored by Martin Storsjo's avatar Martin Storsjo

Simplify the definition of static_vo

For GCC, all of inline, __inline and __inline__ work fine.
For MSVC, only __inline works. (__inline should also be accepted
by RVCT.)
parent a6c29661
...@@ -29,11 +29,7 @@ ...@@ -29,11 +29,7 @@
#define MIN_16 (Word16)-32768 /* 0x8000 */ #define MIN_16 (Word16)-32768 /* 0x8000 */
#ifdef LINUX
#define static_vo static __inline__
#else
#define static_vo static __inline #define static_vo static __inline
#endif
#define saturate(L_var1) (((L_var1) > 0X00007fffL) ? (MAX_16): (((L_var1) < (Word32) 0xffff8000L) ? (MIN_16): ((L_var1) & 0xffff))) #define saturate(L_var1) (((L_var1) > 0X00007fffL) ? (MAX_16): (((L_var1) < (Word32) 0xffff8000L) ? (MIN_16): ((L_var1) & 0xffff)))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment