llvm-c/Target.h: Tweak "inline" for msvc to use __inline instead.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 23 Oct 2013 17:56:52 +0000 (17:56 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 23 Oct 2013 17:56:52 +0000 (17:56 +0000)
FIXME: I don't think it'd be smart.
llvm-svn: 193256

llvm/include/llvm-c/Target.h

index 46ee59a..71a2481 100644 (file)
 #include "llvm-c/Core.h"
 #include "llvm/Config/llvm-config.h"
 
+#if defined(_MSC_VER) && !defined(inline)
+#define inline __inline
+#endif
+
 #ifdef __cplusplus
 extern "C" {
 #endif