Make GMP optional for the examples

This commit is contained in:
Patrick Pelissier committed 2019-11-24 08:34:39 +01:00
1 parent 87183573ce
commit dde090d4b0
3 files changed
+25 -5

No files matched your search

+7
View File
@@ -1,3 +1,5 @@
#if HAVE_GMP
#include <gmp.h>
#include "m-array.h"
@@ -35,3 +37,8 @@ int main(void)
array_mpz_clear(a);
mpz_clear(z);
}
#else
// Nothing to do
int main(void) { return 0; }
#endif