Skip to content

Commit 1bebaf6

Browse files
authored
Merge pull request #2906 from jmichelp/master
Fix compilation under termux
2 parents 67da1c8 + f06c2fa commit 1bebaf6

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

tools/cryptorf/sma.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -706,6 +706,10 @@ void combine_valid_left_right_states(vector<cs_t> *plcstates, vector<cs_t> *prcs
706706
printf("but only " _GREEN_("%zu")" were valid!\n", pgc_candidates->size());
707707
}
708708

709+
#if defined(__cplusplus)
710+
}
711+
#endif
712+
709713
int main(int argc, const char *argv[]) {
710714
size_t pos;
711715
crypto_state_t ostate;
@@ -855,7 +859,3 @@ int main(int argc, const char *argv[]) {
855859
}
856860
return 0;
857861
}
858-
859-
#if defined(__cplusplus)
860-
}
861-
#endif

tools/cryptorf/sma_multi.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -802,6 +802,10 @@ static void ice_compare(
802802
return;
803803
}
804804

805+
#if defined(__cplusplus)
806+
}
807+
#endif
808+
805809
int main(int argc, const char *argv[]) {
806810
size_t pos;
807811
crypto_state_t ostate;
@@ -969,7 +973,3 @@ int main(int argc, const char *argv[]) {
969973
}
970974
return 0;
971975
}
972-
973-
#if defined(__cplusplus)
974-
}
975-
#endif

0 commit comments

Comments
 (0)