summaryrefslogtreecommitdiff
path: root/math.h
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2020-08-12 19:13:56 -0400
committerJakob Kaivo <jkk@ung.org>2020-08-12 19:13:56 -0400
commitc486885ecda309759144ebad16ec4afd566e0bee (patch)
tree505e86e0afc8341ccbceff8713e2a00fd56c6311 /math.h
parent5638ea3056acb6c3c3eb10f0525f7a4b15dbcb2b (diff)
prevent prepocessor comparisons against empty tokens
Diffstat (limited to 'math.h')
-rw-r--r--math.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/math.h b/math.h
index 6ea714e..c8f04c5 100644
--- a/math.h
+++ b/math.h
@@ -27,6 +27,11 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
+#if defined _XOPEN_SOURCE && _XOPEN_SOURCE - 1 < 0
+#undef _XOPEN_SOURCE
+#define _XOPEN_SOURCE 400
+#endif
+
#if defined _XOPEN_SOURCE && !defined _POSIX_C_SOURCE
# if (_XOPEN_SOURCE >= 700)
# define _POSIX_C_SOURCE 200809L