2010-07-18  Jonathan Yong  <jon_y@users.sourceforge.net>

        * crt/complex.h: Make inlines available only if math.h included.



git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@2890 4407c894-4637-0410-b4f5-ada5f102cad1
diff --git a/mingw-w64-headers/ChangeLog b/mingw-w64-headers/ChangeLog
index fc17159..1f56568 100644
--- a/mingw-w64-headers/ChangeLog
+++ b/mingw-w64-headers/ChangeLog
@@ -1,4 +1,9 @@
+2010-07-18  Jonathan Yong  <jon_y@users.sourceforge.net>
+
+	* crt/complex.h: Make inlines available only if math.h included.
+
 2010-06-22  Jacek Caban  <jacek@codeweavers.com>
+
 	* Makefile.am, configure.am: Added support for IDL SDK.
 	* Makefile.in, configure: Regenerated.
 
diff --git a/mingw-w64-headers/crt/complex.h b/mingw-w64-headers/crt/complex.h
index 9dcbc26..6426ee2 100644
--- a/mingw-w64-headers/crt/complex.h
+++ b/mingw-w64-headers/crt/complex.h
@@ -118,7 +118,7 @@
 long double _Complex __MINGW_ATTRIB_CONST cprojl (long double _Complex);
 
 #ifdef __GNUC__
-#ifndef __CRT__NO_INLINE
+#if !defined (__CRT__NO_INLINE) && defined (_MATH_H_)
 /* double */
 __CRT_INLINE double __MINGW_ATTRIB_CONST creal (double _Complex _Z)
 {