blob: ad533db76884d1d3229811211503c1a44ff416ee [file] [log] [blame] [edit]
From 58ff03526ba9a0e5ebe2e318b54fdbe993d5abbd Mon Sep 17 00:00:00 2001
From: Alexey Pavlov <alexpux@gmail.com>
Date: Thu, 14 Sep 2017 11:13:45 +0300
Subject: [PATCH 1/3] Allow to use bessel and complex functions without
undefining
---
mingw-w64-headers/crt/math.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mingw-w64-headers/crt/math.h b/mingw-w64-headers/crt/math.h
index 658abc80..7d5a26da 100644
--- a/mingw-w64-headers/crt/math.h
+++ b/mingw-w64-headers/crt/math.h
@@ -263,7 +263,7 @@ extern "C" {
#define EDOM 33
#define ERANGE 34
-#ifndef __STRICT_ANSI__
+#if !defined(__STRICT_ANSI__) || defined(_POSIX_C_SOURCE) || defined(_POSIX_SOURCE) || defined(_XOPEN_SOURCE) || defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
#ifndef _COMPLEX_DEFINED
#define _COMPLEX_DEFINED
--
2.14.1