summaryrefslogtreecommitdiff
path: root/include/md5.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/md5.h')
-rw-r--r--include/md5.h26
1 files changed, 17 insertions, 9 deletions
diff --git a/include/md5.h b/include/md5.h
index 3652594..d618489 100644
--- a/include/md5.h
+++ b/include/md5.h
@@ -49,12 +49,6 @@
#ifndef md5_INCLUDED
# define md5_INCLUDED
-#ifndef USE_WINDOWS
-#if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
-#define USE_WINDOWS
-#endif /* win32... */
-#endif /* not defined USE_WINDOWS */
-
/*
* This package supports both compile-time and run-time determination of CPU
* byte order. If ARCH_IS_BIG_ENDIAN is defined as 0, the code will be
@@ -80,14 +74,28 @@ extern "C"
{
#endif
+#ifndef USE_WINDOWS
+#if defined(WIN32) || defined(_WIN32) || defined(WIN64) || defined(_WIN64)
+#define USE_WINDOWS
+#endif /* win32... */
+#endif /* not defined USE_WINDOWS */
+
+#ifndef DECLSPECDLLEXPORT
+#ifdef USE_WINDOWS
+#define DECLSPECDLLEXPORT __declspec(dllexport)
+#else /* USE_WINDOWS */
+#define DECLSPECDLLEXPORT
+#endif /* USE_WINDOWS */
+#endif /* DECLSPECDLLEXPORT */
+
/* Initialize the algorithm. */
-void md5_init(md5_state_t *pms);
+void DECLSPECDLLEXPORT tng_md5_init(md5_state_t *pms);
/* Append a string to the message. */
-void md5_append(md5_state_t *pms, const md5_byte_t *data, int nbytes);
+void DECLSPECDLLEXPORT tng_md5_append(md5_state_t *pms, const md5_byte_t *data, int nbytes);
/* Finish the message and return the digest. */
-void md5_finish(md5_state_t *pms, md5_byte_t digest[16]);
+void DECLSPECDLLEXPORT tng_md5_finish(md5_state_t *pms, md5_byte_t digest[16]);
#ifdef __cplusplus
} /* end extern "C" */
contact: Jan Huwald // Impressum