mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2024-11-23 18:09:48 +00:00
38 lines
754 B
Protocol Buffer
38 lines
754 B
Protocol Buffer
#include "config.h"
|
|
#include <iosfwd>
|
|
|
|
#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)
|
|
|
|
// Used for testing the compiler and linker in cryptest.sh
|
|
#if defined(CRYPTOPP_ADHOC_MAIN)
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
CRYPTOPP_UNUSED(argc), CRYPTOPP_UNUSED(argv);
|
|
return 0;
|
|
}
|
|
|
|
// Classic use of adhoc to setup calling convention
|
|
#else
|
|
|
|
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);
|
|
|
|
#endif
|