_control87 is now ia32_control87 and overrides _control87 via macro. after adding float.h to precompiled.h, compiler was thinking _control87 was dllexport and creating an .exp file (confusing)

This was SVN commit r1884.
This commit is contained in:
janwas 2005-01-30 23:07:55 +00:00
parent 6d807d1c9f
commit bc4351b1c8
2 changed files with 7 additions and 6 deletions

View File

@ -76,7 +76,7 @@ __asm
// change FPU control word (used to set precision) // change FPU control word (used to set precision)
uint _control87(uint new_cw, uint mask) uint ia32_control87(uint new_cw, uint mask)
{ {
__asm __asm
{ {

View File

@ -15,14 +15,14 @@
// Jan.Wassenberg@stud.uni-karlsruhe.de // Jan.Wassenberg@stud.uni-karlsruhe.de
// http://www.stud.uni-karlsruhe.de/~urkt/ // http://www.stud.uni-karlsruhe.de/~urkt/
#ifndef IA32_H
#define IA32_H
#ifndef _M_IX86 #ifndef _M_IX86
#error "including ia32.h without _M_IX86 defined" #error "including ia32.h without _M_IX86 defined"
#endif #endif
#ifndef IA32_H #include "lib/types.h"
#define IA32_H
#include "lib.h"
extern double _ceil(double); extern double _ceil(double);
@ -37,7 +37,8 @@ extern u64 rdtsc(void);
#define _PC_24 0x0000 // 24 bits #define _PC_24 0x0000 // 24 bits
#endif #endif
extern uint _control87(uint new_cw, uint mask); #define _control87 ia32_control87
extern uint ia32_control87(uint new_cw, uint mask);
extern void ia32_debug_break(void); extern void ia32_debug_break(void);