schemas FEATURE add schema getters from the context
Also check for the duplicities in the context when parsing a new schema.
diff --git a/src/common.c b/src/common.c
index ab3b71f..dab8288 100644
--- a/src/common.c
+++ b/src/common.c
@@ -11,8 +11,8 @@
*
* https://opensource.org/licenses/BSD-3-Clause
*/
-#define _XOPEN_SOURCE
-#define _DEFAULT_SOURCE
+
+#include "common.h"
#include <assert.h>
#include <errno.h>
@@ -25,7 +25,6 @@
#include <sys/types.h>
#include <unistd.h>
-#include "common.h"
#include "tree_schema.h"
const char *const ly_stmt_list[] = {