Files
MINGW-packages/mingw-w64-headers-git/0005-bessel_complex.patch
2016-10-09 19:03:54 +03:00

28 lines
932 B
Diff

From 556ba2e45435717a4502e6c77b7af1e5daee8936 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B8=CC=86=20=D0=9F?=
=?UTF-8?q?=D0=B0=D0=B2=D0=BB=D0=BE=D0=B2?= <alexey.pawlow@gmail.com>
Date: Sun, 9 Oct 2016 17:33:44 +0300
Subject: [PATCH] Allow to use bessel and complex functions without undefining
__STRICT_ANSI__
---
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 b06ca79..d3617d0 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.9.0