From: Florian Forster Date: Sat, 10 May 2008 06:04:48 +0000 (+0200) Subject: src/*.c: Define _ISOC99_SOURCE and _POSIX_C_SOURCE in all .c files. X-Git-Tag: v1.0.0~98 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=4abd9f75fbb6d766dd97a7efd1eb70700fc48966;p=sort-networks.git src/*.c: Define _ISOC99_SOURCE and _POSIX_C_SOURCE in all .c files. --- diff --git a/src/sn-apply.c b/src/sn-apply.c index 4793097..0f99ab2 100644 --- a/src/sn-apply.c +++ b/src/sn-apply.c @@ -19,8 +19,12 @@ * Florian octo Forster **/ -#define _ISOC99_SOURCE -#define _POSIX_C_SOURCE 200112L +#ifndef _ISOC99_SOURCE +# define _ISOC99_SOURCE +#endif +#ifndef _POSIX_C_SOURCE +# define _POSIX_C_SOURCE 200112L +#endif #include #include diff --git a/src/sn-cut.c b/src/sn-cut.c index cb68fcd..ad9d27d 100644 --- a/src/sn-cut.c +++ b/src/sn-cut.c @@ -19,6 +19,13 @@ * Florian octo Forster **/ +#ifndef _ISOC99_SOURCE +# define _ISOC99_SOURCE +#endif +#ifndef _POSIX_C_SOURCE +# define _POSIX_C_SOURCE 200112L +#endif + #include #include #include diff --git a/src/sn-evolution.c b/src/sn-evolution.c index b6c37b4..af48642 100644 --- a/src/sn-evolution.c +++ b/src/sn-evolution.c @@ -19,8 +19,12 @@ * Florian octo Forster **/ -#define _ISOC99_SOURCE -#define _POSIX_C_SOURCE 200112L +#ifndef _ISOC99_SOURCE +# define _ISOC99_SOURCE +#endif +#ifndef _POSIX_C_SOURCE +# define _POSIX_C_SOURCE 200112L +#endif #include #include diff --git a/src/sn-merge.c b/src/sn-merge.c index abc03b2..2c884a5 100644 --- a/src/sn-merge.c +++ b/src/sn-merge.c @@ -19,6 +19,13 @@ * Florian octo Forster **/ +#ifndef _ISOC99_SOURCE +# define _ISOC99_SOURCE +#endif +#ifndef _POSIX_C_SOURCE +# define _POSIX_C_SOURCE 200112L +#endif + #include #include diff --git a/src/sn-normalize.c b/src/sn-normalize.c index 0c0376d..30b6c1e 100644 --- a/src/sn-normalize.c +++ b/src/sn-normalize.c @@ -19,6 +19,13 @@ * Florian octo Forster **/ +#ifndef _ISOC99_SOURCE +# define _ISOC99_SOURCE +#endif +#ifndef _POSIX_C_SOURCE +# define _POSIX_C_SOURCE 200112L +#endif + #include #include #include diff --git a/src/sn-show.c b/src/sn-show.c index cf24a59..110bfe6 100644 --- a/src/sn-show.c +++ b/src/sn-show.c @@ -19,6 +19,13 @@ * Florian octo Forster **/ +#ifndef _ISOC99_SOURCE +# define _ISOC99_SOURCE +#endif +#ifndef _POSIX_C_SOURCE +# define _POSIX_C_SOURCE 200112L +#endif + #include #include diff --git a/src/sn-tex.c b/src/sn-tex.c index 4346182..7f06fb8 100644 --- a/src/sn-tex.c +++ b/src/sn-tex.c @@ -19,6 +19,13 @@ * Florian octo Forster **/ +#ifndef _ISOC99_SOURCE +# define _ISOC99_SOURCE +#endif +#ifndef _POSIX_C_SOURCE +# define _POSIX_C_SOURCE 200112L +#endif + #include #include diff --git a/src/sn_comparator.c b/src/sn_comparator.c index c087b2d..052731c 100644 --- a/src/sn_comparator.c +++ b/src/sn_comparator.c @@ -19,6 +19,13 @@ * Florian octo Forster **/ +#ifndef _ISOC99_SOURCE +# define _ISOC99_SOURCE +#endif +#ifndef _POSIX_C_SOURCE +# define _POSIX_C_SOURCE 200112L +#endif + #include #include diff --git a/src/sn_network.c b/src/sn_network.c index 3fdb719..ba5fffb 100644 --- a/src/sn_network.c +++ b/src/sn_network.c @@ -19,6 +19,13 @@ * Florian octo Forster **/ +#ifndef _ISOC99_SOURCE +# define _ISOC99_SOURCE +#endif +#ifndef _POSIX_C_SOURCE +# define _POSIX_C_SOURCE 200112L +#endif + #include #include #include diff --git a/src/sn_population.c b/src/sn_population.c index 2bb6052..1e69092 100644 --- a/src/sn_population.c +++ b/src/sn_population.c @@ -19,8 +19,12 @@ * Florian octo Forster **/ -#define _ISOC99_SOURCE -#define _POSIX_C_SOURCE 200112L +#ifndef _ISOC99_SOURCE +# define _ISOC99_SOURCE +#endif +#ifndef _POSIX_C_SOURCE +# define _POSIX_C_SOURCE 200112L +#endif #include #include diff --git a/src/sn_random.c b/src/sn_random.c index 368087f..841b6e4 100644 --- a/src/sn_random.c +++ b/src/sn_random.c @@ -19,8 +19,12 @@ * Florian octo Forster **/ -#define _ISOC99_SOURCE -#define _POSIX_C_SOURCE 200112L +#ifndef _ISOC99_SOURCE +# define _ISOC99_SOURCE +#endif +#ifndef _POSIX_C_SOURCE +# define _POSIX_C_SOURCE 200112L +#endif #include #include diff --git a/src/sn_stage.c b/src/sn_stage.c index bbc311c..dfd3fb5 100644 --- a/src/sn_stage.c +++ b/src/sn_stage.c @@ -19,6 +19,13 @@ * Florian octo Forster **/ +#ifndef _ISOC99_SOURCE +# define _ISOC99_SOURCE +#endif +#ifndef _POSIX_C_SOURCE +# define _POSIX_C_SOURCE 200112L +#endif + #include #include #include