2015-11-05 06:59:46 +00:00
|
|
|
#include "config.h"
|
|
|
|
#include <iosfwd>
|
2016-09-05 04:27:17 +00:00
|
|
|
#include <string>
|
2015-11-05 06:59:46 +00:00
|
|
|
|
|
|
|
#if CRYPTOPP_MSC_VERSION
|
|
|
|
# pragma warning(disable: 4100 4189 4996)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if CRYPTOPP_GCC_DIAGNOSTIC_AVAILABLE
|
|
|
|
# pragma GCC diagnostic ignored "-Wunused-variable"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
USING_NAMESPACE(CryptoPP)
|
|
|
|
USING_NAMESPACE(std)
|
|
|
|
|
2016-06-09 00:03:52 +00:00
|
|
|
#ifndef CRYPTOPP_UNUSED
|
|
|
|
# define CRYPTOPP_UNUSED(x) (void(x))
|
|
|
|
#endif
|
|
|
|
|
2016-02-02 18:44:49 +00:00
|
|
|
// Used for testing the compiler and linker in cryptest.sh
|
2018-07-31 06:17:13 +00:00
|
|
|
#if defined(CRYPTOPP_ADHOC_MAIN) || defined(ADHOC_MAIN)
|
2016-02-02 18:44:49 +00:00
|
|
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
{
|
|
|
|
CRYPTOPP_UNUSED(argc), CRYPTOPP_UNUSED(argv);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Classic use of adhoc to setup calling convention
|
|
|
|
#else
|
|
|
|
|
2015-11-05 06:59:46 +00:00
|
|
|
extern int (*AdhocTest)(int argc, char *argv[]);
|
|
|
|
|
|
|
|
int MyAdhocTest(int argc, char *argv[])
|
|
|
|
{
|
|
|
|
CRYPTOPP_UNUSED(argc), CRYPTOPP_UNUSED(argv);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int s_i = (AdhocTest = &MyAdhocTest, 0);
|
2016-02-02 18:44:49 +00:00
|
|
|
|
2016-02-02 18:57:44 +00:00
|
|
|
#endif
|