From 1bda5ed34acbe705b0a0e885bb3b81a1a28a707f Mon Sep 17 00:00:00 2001 From: Mike Hamburg Date: Tue, 14 Jul 2015 18:42:01 -0700 Subject: [PATCH] XOPEN_SOURCE defines fixed --- src/public_include/decaf/decaf_255.hxx | 2 ++ src/public_include/decaf/decaf_448.hxx | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/public_include/decaf/decaf_255.hxx b/src/public_include/decaf/decaf_255.hxx index e84a792..7350e7a 100644 --- a/src/public_include/decaf/decaf_255.hxx +++ b/src/public_include/decaf/decaf_255.hxx @@ -23,7 +23,9 @@ #define __DECAF_255_HXX__ 1 /** This code uses posix_memalign. */ +#ifndef _XOPEN_SOURCE #define _XOPEN_SOURCE 600 +#endif #include #include /* for memcpy */ diff --git a/src/public_include/decaf/decaf_448.hxx b/src/public_include/decaf/decaf_448.hxx index c043fcb..287236b 100644 --- a/src/public_include/decaf/decaf_448.hxx +++ b/src/public_include/decaf/decaf_448.hxx @@ -23,7 +23,9 @@ #define __DECAF_448_HXX__ 1 /** This code uses posix_memalign. */ -#define _XOPEN_SOURCE 600 +#ifndef _XOPEN_SOURCE +#define _XOPEN_SOURCE 600 +#endif #include #include /* for memcpy */