]> git.draconx.ca Git - cdecl99.git/blobdiff - t/rng-test.c
libcdecl: Remove glibc snprintf workaround.
[cdecl99.git] / t / rng-test.c
index 1d5c6e9373f16acb663e234ee6467d60f0dd0b31..e4173aac28898df37b5106836bbd67c70770edda 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Simple random number generator for testing.
- * Copyright © 2022-2023 Nick Bowler
+ * Copyright © 2022-2024 Nick Bowler
  *
  * Directly compare the test lib RNG against the reference implementation.
  *
 #include <config.h>
 #include "tap.h"
 
+#if !HAVE_FOR_DECLS
+int main(void)
+{
+       tap_skip_all("cannot compile reference xoshiro256+");
+}
+#else
+#define TEST_RNG_NO_EXTERNAL_API 1
 #include "rng.c"
 #include "xos256p.c"
 
@@ -71,3 +78,4 @@ int main(void)
 
        tap_done();
 }
+#endif