diff options
author | David Robillard <d@drobilla.net> | 2016-10-01 13:04:03 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-10-01 13:04:03 -0400 |
commit | 4b4d5fd2130c6d135e360ef1a76d285cc4079708 (patch) | |
tree | ffd237dff7afe867e94d34d8d60e9237f0e088ed /src | |
parent | 31ea384f24e12778d6e30cc7a30b0f48f3d50523 (diff) | |
download | sord-4b4d5fd2130c6d135e360ef1a76d285cc4079708.tar.gz sord-4b4d5fd2130c6d135e360ef1a76d285cc4079708.tar.bz2 sord-4b4d5fd2130c6d135e360ef1a76d285cc4079708.zip |
Transition away from deprecated _BSD_SOURCE
Diffstat (limited to 'src')
-rw-r--r-- | src/sord_validate.c | 5 | ||||
-rw-r--r-- | src/sordi.c | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/sord_validate.c b/src/sord_validate.c index b80cd5d..869ee1a 100644 --- a/src/sord_validate.c +++ b/src/sord_validate.c @@ -1,5 +1,5 @@ /* - Copyright 2012-2015 David Robillard <http://drobilla.net> + Copyright 2012-2016 David Robillard <http://drobilla.net> Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above @@ -14,7 +14,8 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#define _BSD_SOURCE // for realpath +#define _BSD_SOURCE 1 // for realpath +#define _DEFAULT_SOURCE 1 // for realpath #include <assert.h> #include <stdlib.h> diff --git a/src/sordi.c b/src/sordi.c index 04259db..8ddbfb4 100644 --- a/src/sordi.c +++ b/src/sordi.c @@ -14,8 +14,6 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#define _BSD_SOURCE // for realpath - #include <assert.h> #include <stdlib.h> #include <string.h> |