Avoid yet another name clash with libdes, and make the declaration consistent
[openssl.git] / crypto / des / des_ver.h
index 7041a9271d2e12b927d3d06eb30f8aeaddd94ebf..379bbadda2a7c16ff578df7f7d4169c67b97d797 100644 (file)
  * [including the GNU Public Licence.]
  */
 
-extern char *DES_version;      /* SSLeay version string */
-extern char *libdes_version;   /* old libdes version string */
+#include <openssl/e_os2.h>
+
+#ifdef OPENSSL_BUILD_SHLIBCRYPTO
+# undef OPENSSL_EXTERN
+# define OPENSSL_EXTERN OPENSSL_EXPORT
+#endif
+
+/* The following macros make sure the names are different from libdes names */
+#define DES_version OSSL_DES_version
+#define libdes_version OSSL_libdes_version
+
+OPENSSL_EXTERN const char *OSSL_DES_version;   /* SSLeay version string */
+OPENSSL_EXTERN const char *OSSL_libdes_version;        /* old libdes version string */