mirror of
https://gitlab.com/embeddable-common-lisp/ecl.git
synced 2026-01-10 19:22:39 -08:00
Make FPE catching work under MSVC.
This commit is contained in:
parent
a6e722ee50
commit
1861bee4ff
3 changed files with 6 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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@"
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
* See fpe_none.c for a description
|
||||
*/
|
||||
|
||||
#ifdef _MSVC
|
||||
#ifdef _MSC_VER
|
||||
#define ecl_detect_fpe() __asm fwait
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue