# define _ISOC99_SOURCE
#endif
#ifndef _POSIX_C_SOURCE
-# define _POSIX_C_SOURCE 200112L
+# define _POSIX_C_SOURCE 200809L
+#endif
+#ifndef _XOPEN_SOURCE
+# define _XOPEN_SOURCE 700
#endif
#include <stdlib.h>
# define __attribute__(x) /**/
#endif
-/* Yes, this is ugly, but the GNU libc doesn't export it with the above flags.
- * */
-char *strdup (const char *s);
-
static uint64_t iteration_counter = 0;
static int inputs_num = 16;
static int inputs_num_is_power_of_two = 1;
return (rate);
} /* int rate_network */
+#if 0
static int mutate_network (sn_network_t *n)
{
sn_network_t *n_copy;
return (0);
} /* int mutate_network */
+#endif
static int create_offspring (void)
{
assert (SN_NETWORK_INPUT_NUM (n) == inputs_num);
+#if 0
if ((SN_NETWORK_INPUT_NUM (n) <= 16) && (sn_bounded_random (0, 100) <= 1))
mutate_network (n);
+#endif
population_insert (population, n);