Skip to content

Commit 01ff70b

Browse files
authored
Merge pull request #55 from dougalsutherland/inline-workaround
inline workaround
2 parents db3c4dd + 044fa4f commit 01ff70b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

snappy/crc32c.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
#include <stdlib.h>
2020
#include <stdint.h>
2121

22+
#if defined(_MSC_VER) && !defined(__cplusplus) /* Visual Studio */
23+
#ifndef inline
24+
#define inline __inline /* Visual C is not C99, but supports some kind of inline */
25+
#endif
26+
#endif
27+
2228
#ifdef __cplusplus
2329
extern "C" {
2430
#endif

0 commit comments

Comments
 (0)