Commit f511b25a authored by Emilia Kasper's avatar Emilia Kasper
Browse files

define inline for Visual Studio

In Visual Studio, inline is available in C++ only, however __inline is available for C, see
http://msdn.microsoft.com/en-us/library/z8y1yy88.aspx



Reviewed-by: default avatarRichard Levitte <levitte@openssl.org>
Reviewed-by: default avatarDr Stephen Henson <steve@openssl.org>
parent da92be4d
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -381,6 +381,15 @@ static unsigned int _strlen31(const char *str)
#  define check_winnt() (GetVersion() < 0x80000000)
#endif

/*
 * 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
@@ -754,4 +763,3 @@ struct servent *getservbyname(const char *name, const char *proto);
#endif

#endif