Make FPE catching work under MSVC.

This commit is contained in:
goffioul 2005-10-26 11:29:28 +00:00
parent a6e722ee50
commit 1861bee4ff
3 changed files with 6 additions and 3 deletions

View file

@ -118,8 +118,9 @@ clean:
$(DPP): $(srcdir)/dpp.c $(srcdir)/symbols_list2.h ../h/config.h
$(TRUE_CC) -I../h -I./ -I$(HDIR) $(DEFS) $(srcdir)/dpp.c -o $@
../h/config.h: ../h/config.h.msvc6
$(CP) ..\h\config.h.msvc6 ..\h\config.h
../h/config.h: ../h/config.h.msvc6 Makefile
cut.exe "@ECL_FPE_CODE@" "$(srcdir:\=/)/arch/fpe_x86.c" \
< ..\h\config.h.msvc6 > $@
#
# GCC might break this code

View file

@ -276,3 +276,5 @@ typedef int int32_t;
typedef unsigned char uint8_t;
typedef unsigned short uint16_t;
typedef unsigned int uint32_t;
#include "@ECL_FPE_CODE@"

View file

@ -16,7 +16,7 @@
* See fpe_none.c for a description
*/
#ifdef _MSVC
#ifdef _MSC_VER
#define ecl_detect_fpe() __asm fwait
#endif