2009-03-28 Kai Tietz <kai.tietz@onevision.com>
* misc/fesetenv.c: Replace _imp__<sym> by __MINGW_IMP_SYMBOL(sym).
* complex/cpow.c: Likewise.
git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@694 4407c894-4637-0410-b4f5-ada5f102cad1
diff --git a/mingw-w64-crt/ChangeLog b/mingw-w64-crt/ChangeLog
index 89a57d8..84ad96b 100644
--- a/mingw-w64-crt/ChangeLog
+++ b/mingw-w64-crt/ChangeLog
@@ -1,3 +1,8 @@
+2009-03-28 Kai Tietz <kai.tietz@onevision.com>
+
+ * misc/fesetenv.c: Replace _imp__<sym> by __MINGW_IMP_SYMBOL(sym).
+ * complex/cpow.c: Likewise.
+
2009-03-17 Kai Tietz <kai.tietz@onevision.com>
* crt/crtexe.c (wmainCRTStartup): Rename it to mainCRTStartup.
diff --git a/mingw-w64-crt/complex/cpow.c b/mingw-w64-crt/complex/cpow.c
index 4ec52cf..e5ef53b 100644
--- a/mingw-w64-crt/complex/cpow.c
+++ b/mingw-w64-crt/complex/cpow.c
@@ -10,13 +10,13 @@
*/
/* cpow(X, Y) = cexp(X * clog(Y)) */
-
+#include <_mingw.h>
#include <math.h>
#include <complex.h>
/* Use dll version of pow */
-extern double (*_imp__pow) (double, double);
-#define pow (*_imp__pow)
+extern double (* __MINGW_IMP_SYMBOL(pow)) (double, double);
+#define pow (* __MINGW_IMP_SYMBOL(pow))
double complex cpow (double complex X, double complex Y)
{
diff --git a/mingw-w64-crt/misc/fesetenv.c b/mingw-w64-crt/misc/fesetenv.c
index e6a392e..77530f1 100644
--- a/mingw-w64-crt/misc/fesetenv.c
+++ b/mingw-w64-crt/misc/fesetenv.c
@@ -3,6 +3,7 @@
* This file is part of the w64 mingw-runtime package.
* No warranty is given; refer to the file DISCLAIMER within this package.
*/
+#include <_mingw.h>
#include <fenv.h>
#include <float.h>
@@ -18,7 +19,7 @@
exceptions.
*/
-extern void (*_imp___fpreset)( void ) ;
+extern void (* __MINGW_IMP_SYMBOL(_fpreset))(void);
extern void _fpreset(void);
int fesetenv (const fenv_t * envp)
@@ -38,7 +39,7 @@
* We force calling _fpreset in msvcrt.dll
*/
- (*_imp___fpreset)();
+ (* __MINGW_IMP_SYMBOL(_fpreset))();
else if (envp == FE_DFL_ENV)
/* Use the choice made at app startup */