Package list libcryptx-perl / c67e6e1
msvc related fix Karel Miko 3 years ago
2 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
7878 /* this is to make porting into LibTomCrypt easier :-) */
7979 typedef unsigned int mp_digit;
8080 #ifdef _MSC_VER
81 typedef unsigned __int64 mp_word
81 typedef unsigned __int64 mp_word;
8282 #else
8383 typedef unsigned long long mp_word; /* PATCHED */
8484 #endif
2424 # #else
2525 # typedef unsigned long long mp_word;
2626 # #endif
27 system 'sed', '-i', 's,^\(typedef *unsigned *long *long *mp_word;\)$,#ifdef _MSC_VER\ntypedef unsigned __int64 mp_word\n#else\n\1 /* PATCHED */\n#endif,', 'src//ltm/tommath.h';
27 system 'sed', '-i', 's,^\(typedef *unsigned *long *long *mp_word;\)$,#ifdef _MSC_VER\ntypedef unsigned __int64 mp_word;\n#else\n\1 /* PATCHED */\n#endif,', 'src//ltm/tommath.h';
2828
2929 find({ wanted=>sub { unlink $_ if -f $_ && $_ =~ /test\.c$/ && $_ !~ /sha3_test.c$/ }, no_chdir=>1 }, "$FindBin::Bin/ltc");
3030 find({ wanted=>sub { unlink $_ if -f $_ && $_ =~ /\.o$/ }, no_chdir=>1 }, "$FindBin::Bin/ltm", "$FindBin::Bin/ltc");