X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Futils%2Fmono-compiler.h;h=a533a9f01e33867044ce77558d92992f1bfac588;hb=2e34a838d380715565ada6d447a06d03d6874136;hp=2d7a545068001ef843af994fcea9b2ca7fca2d6f;hpb=0aedc3f6fb2194817c766659c50a7e7f4786672e;p=mono.git diff --git a/mono/utils/mono-compiler.h b/mono/utils/mono-compiler.h index 2d7a5450680..a533a9f01e3 100644 --- a/mono/utils/mono-compiler.h +++ b/mono/utils/mono-compiler.h @@ -187,6 +187,12 @@ /* Deal with Microsoft C compiler differences */ #ifdef _MSC_VER +#include + +#if _MSC_VER < 1800 /* VS 2013 */ +#define strtoull _strtoui64 +#endif + #include #define isnan(x) _isnan(x) #define trunc(x) (((x) < 0) ? ceil((x)) : floor((x))) @@ -206,7 +212,7 @@ #endif /* _MSC_VER */ -#if !defined(_MSC_VER) && !defined(PLATFORM_SOLARIS) && !defined(_WIN32) && !defined(__CYGWIN__) && HAVE_VISIBILITY_HIDDEN +#if !defined(_MSC_VER) && !defined(PLATFORM_SOLARIS) && !defined(_WIN32) && !defined(__CYGWIN__) && !defined(MONOTOUCH) && HAVE_VISIBILITY_HIDDEN #define MONO_INTERNAL __attribute__ ((visibility ("hidden"))) #if MONO_LLVM_LOADED #define MONO_LLVM_INTERNAL @@ -224,5 +230,13 @@ #define MONO_DEPRECATED #endif +#ifdef __GNUC__ +#define MONO_ALWAYS_INLINE __attribute__((always_inline)) +#elif defined(_MSC_VER) +#define MONO_ALWAYS_INLINE __forceinline +#else +#define MONO_ALWAYS_INLINE +#endif + #endif /* __UTILS_MONO_COMPILER_H__*/