diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2014-10-15 17:35:39 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2014-10-15 17:35:39 +0000 |
commit | f62b4332f57a140c7a64082fb139c06b1a71584c (patch) | |
tree | 8df07ff17fed10701bf6420470d0c11581fdf345 /e_os.h | |
parent | 2af9154f28669943cf601ecc3c9bbbe372587787 (diff) |
Diffstat (limited to 'e_os.h')
-rw-r--r-- | e_os.h | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -360,7 +360,16 @@ static unsigned int _strlen31(const char *str) # define DEFAULT_HOME "C:" # endif -#else /* The non-microsoft world world */ +/* + * Visual Studio: inline is available in C++ only, however + * __inline is available for C, see + * http://msdn.microsoft.com/en-us/library/z8y1yy88.aspx + */ +#if defined(_MSC_VER) && !defined(__cplusplus) && !defined(inline) +# define inline __inline +#endif + +#else /* The non-microsoft world */ # ifdef OPENSSL_SYS_VMS # define VMS 1 @@ -707,4 +716,3 @@ struct servent *getservbyname(const char *name, const char *proto); #endif #endif - |