2006-07-22 14:48:24 -07:00
|
|
|
#ifdef E_TYPEDEFS
|
|
|
|
|
|
|
|
#else
|
|
|
|
#ifndef E_SHA1_H
|
|
|
|
#define E_SHA1_H
|
|
|
|
|
2015-05-07 12:13:10 -07:00
|
|
|
#ifndef E_API
|
2006-07-22 14:48:24 -07:00
|
|
|
# ifdef WIN32
|
|
|
|
# ifdef BUILDING_DLL
|
2015-05-07 12:13:10 -07:00
|
|
|
# define E_API __declspec(dllexport)
|
2006-07-22 14:48:24 -07:00
|
|
|
# else
|
2015-05-07 12:13:10 -07:00
|
|
|
# define E_API __declspec(dllimport)
|
2006-07-22 14:48:24 -07:00
|
|
|
# endif
|
|
|
|
# else
|
|
|
|
# ifdef __GNUC__
|
|
|
|
# if __GNUC__ >= 4
|
2007-03-25 15:45:00 -07:00
|
|
|
/* BROKEN in gcc 4 on amd64 */
|
|
|
|
#if 0
|
|
|
|
# pragma GCC visibility push(hidden)
|
|
|
|
#endif
|
2015-05-07 12:13:10 -07:00
|
|
|
# define E_API __attribute__ ((visibility("default")))
|
2006-07-22 14:48:24 -07:00
|
|
|
# else
|
2015-05-07 12:13:10 -07:00
|
|
|
# define E_API
|
2006-07-22 14:48:24 -07:00
|
|
|
# endif
|
|
|
|
# else
|
2015-05-07 12:13:10 -07:00
|
|
|
# define E_API
|
2006-07-22 14:48:24 -07:00
|
|
|
# endif
|
|
|
|
# endif
|
|
|
|
#endif
|
|
|
|
|
2015-05-07 12:13:10 -07:00
|
|
|
E_API int e_sha1_sum(unsigned char *data, int size, unsigned char *dst);
|
2012-06-20 23:19:43 -07:00
|
|
|
|
2006-07-22 14:48:24 -07:00
|
|
|
#endif
|
|
|
|
#endif
|