X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fsn-svg.c;h=47d7f9377d12894ff845f88e43db831169771a90;hb=81effefb7705a491ca062e54f31aa03093c28dbc;hp=d3da59ca002d24080a0e01cb7e827934fa93c6bf;hpb=9f77fbe43254d5920b3b1fac1ab0c01cc3a3adcc;p=sort-networks.git diff --git a/src/sn-svg.c b/src/sn-svg.c index d3da59c..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) /* {{{ */ { @@ -211,8 +218,8 @@ int main (int argc, char **argv) /* {{{ */ printf ("\n" "\n" - "\n", + "\n", svg_width, svg_height, svg_width, svg_height); printf ("\n", PACKAGE_STRING);