src/sn-batcher.c: Add program to create batcher mergesort networks.
[sort-networks.git] / src / sn-merge.c
index abc03b2..db0b4cd 100644 (file)
  *   Florian octo Forster <octo at verplant.org>
  **/
 
+#ifndef _ISOC99_SOURCE
+# define _ISOC99_SOURCE
+#endif
+#ifndef _POSIX_C_SOURCE
+# define _POSIX_C_SOURCE 200112L
+#endif
+
 #include <stdlib.h>
 #include <stdio.h>
 
@@ -53,7 +60,7 @@ int main (int argc, char **argv)
     return (1);
   }
 
-  n = sn_network_combine (n0, n1);
+  n = sn_network_combine (n0, n1, /* is power of two = */ 0);
   sn_network_destroy (n0);
   sn_network_destroy (n1);