aboutsummaryrefslogtreecommitdiffstats
path: root/src/persist.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-11-07 20:29:22 +0000
committerDavid Robillard <d@drobilla.net>2011-11-07 20:29:22 +0000
commitbb80e20cabfaa12c9307c9c708e7de38b6588f85 (patch)
treebb4be88b2cd259e0707aff1a2a9f772c0f4e6ec0 /src/persist.c
parent0adab4c4d8dc0b81494f9be882fc8e5ccd65f3d4 (diff)
downloadjalv-bb80e20cabfaa12c9307c9c708e7de38b6588f85.tar.gz
jalv-bb80e20cabfaa12c9307c9c708e7de38b6588f85.tar.bz2
jalv-bb80e20cabfaa12c9307c9c708e7de38b6588f85.zip
Remove use of non-portable _XOPEN_SOURCE and strdup.
git-svn-id: http://svn.drobilla.net/lad/trunk/jalv@3604 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/persist.c')
-rw-r--r--src/persist.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/persist.c b/src/persist.c
index 384dd4b..d4ce803 100644
--- a/src/persist.c
+++ b/src/persist.c
@@ -14,8 +14,6 @@
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#define _XOPEN_SOURCE 500
-
#include <assert.h>
#include <locale.h>
#include <stdio.h>
@@ -115,7 +113,7 @@ jalv_save(Jalv* jalv, const char* dir)
assert(!jalv->writer);
// Set numeric locale to C so snprintf %f is Turtle compatible
- char* locale = strdup(setlocale(LC_NUMERIC, NULL));
+ char* locale = jalv_strdup(setlocale(LC_NUMERIC, NULL));
setlocale(LC_NUMERIC, "C");
const size_t dir_len = strlen(dir);