[llvm] r193256 - llvm-c/Target.h: Tweak "inline" for msvc to use __inline instead.
NAKAMURA Takumi
geek4civic at gmail.com
Wed Oct 23 10:56:52 PDT 2013
Author: chapuni
Date: Wed Oct 23 12:56:52 2013
New Revision: 193256
URL: http://llvm.org/viewvc/llvm-project?rev=193256&view=rev
Log:
llvm-c/Target.h: Tweak "inline" for msvc to use __inline instead.
FIXME: I don't think it'd be smart.
Modified:
llvm/trunk/include/llvm-c/Target.h
Modified: llvm/trunk/include/llvm-c/Target.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm-c/Target.h?rev=193256&r1=193255&r2=193256&view=diff
==============================================================================
--- llvm/trunk/include/llvm-c/Target.h (original)
+++ llvm/trunk/include/llvm-c/Target.h Wed Oct 23 12:56:52 2013
@@ -22,6 +22,10 @@
#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
More information about the llvm-commits
mailing list