Skip to content

Commit d66fb24

Browse files
committed
Fix windows compilation issue: add inline definition for MSVC 2008 in utils.h.
1 parent e15d70b commit d66fb24

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/gpuarray/util.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ extern "C" {
1515
#include <gpuarray/elemwise.h>
1616
#include <gpuarray/types.h>
1717

18+
/* MSVC 2008 does not support "inline". */
19+
#ifdef _MSC_VER
20+
#ifndef inline
21+
#define inline __inline
22+
#endif
23+
#endif
24+
1825
/**
1926
* Registers a type with the kernel machinery.
2027
*

0 commit comments

Comments
 (0)