X-Git-Url: https://git.octo.it/?p=sort-networks.git;a=blobdiff_plain;f=src%2Fsn-svg.c;h=47d7f9377d12894ff845f88e43db831169771a90;hp=ee60e80f41d8d703bb3e0a99c972f9d54ecacfb4;hb=807591e0b3c3f9efe3914da0efa688781b0abab8;hpb=db014f0d65acd72746908f81472355ef38777db6 diff --git a/src/sn-svg.c b/src/sn-svg.c index ee60e80..47d7f93 100644 --- a/src/sn-svg.c +++ b/src/sn-svg.c @@ -21,6 +21,13 @@ #include "config.h" +#ifndef _ISOC99_SOURCE +# define _ISOC99_SOURCE +#endif +#ifndef _POSIX_C_SOURCE +# define _POSIX_C_SOURCE 200112L +#endif + #include #include #include @@ -70,7 +77,7 @@ static int read_options (int argc, char **argv) /* {{{ */ return (0); } /* }}} int read_options */ -static double determine_stage_width (sn_stage_t *s) +static double determine_stage_width (sn_stage_t *s) /* {{{ */ { int lines[s->comparators_num]; int right[s->comparators_num]; @@ -103,7 +110,7 @@ static double determine_stage_width (sn_stage_t *s) assert (lines_used >= 1); return (((double) (lines_used - 1)) * INNER_SPACING); -} +} /* }}} double determine_stage_width */ static double determine_network_width (sn_network_t *n) /* {{{ */ {