diff options
Diffstat (limited to 'source/cNoise.h')
-rw-r--r-- | source/cNoise.h | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/source/cNoise.h b/source/cNoise.h index d4da677f3..a0283fc8d 100644 --- a/source/cNoise.h +++ b/source/cNoise.h @@ -6,15 +6,23 @@ // Do not touch
#if NOISE_USE_INLINE
-# define __NOISE_INLINE__ inline
+ #ifdef _MSC_VER
+ #define __NOISE_INLINE__ __forceinline
+ #else
+ #define __NOISE_INLINE__ inline
+ #endif // _MSC_VER
#else
-# define __NOISE_INLINE__
+ #define __NOISE_INLINE__
#endif
#if NOISE_USE_SSE
# include <emmintrin.h>
#endif
+
+
+
+
class cNoise
{
public:
@@ -55,6 +63,14 @@ private: unsigned int m_Seed;
};
+
+
+
+
#if NOISE_USE_INLINE
# include "cNoise.inc"
#endif
+
+
+
+
|