mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-21 03:13:42 +08:00
ncx: use __inline with MSVC
Visual Studio 2013 and older do not support `inline` in C code.
This commit is contained in:
parent
db41b2a653
commit
e0f314123f
@ -296,6 +296,9 @@ static const char nada[X_ALIGN] = {0, 0, 0, 0};
|
||||
(((a) & 0x00FF000000000000ULL) >> 40) | \
|
||||
(((a) & 0xFF00000000000000ULL) >> 56) )
|
||||
|
||||
#if defined(_MSC_VER) && _MSC_VER < 1900
|
||||
#define inline __inline
|
||||
#endif
|
||||
|
||||
inline static void
|
||||
swapn2b(void *dst, const void *src, IntType nn)
|
||||
|
Loading…
Reference in New Issue
Block a user