From bb80e20cabfaa12c9307c9c708e7de38b6588f85 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 7 Nov 2011 20:29:22 +0000 Subject: 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 --- src/persist.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/persist.c') 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 #include #include @@ -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); -- cgit v1.2.1