diff --git a/libsrc/geos/common/Makefile b/libsrc/geos/common/Makefile index 575d4e1c1..48dce5cc7 100644 --- a/libsrc/geos/common/Makefile +++ b/libsrc/geos/common/Makefile @@ -10,7 +10,7 @@ %.o: %.s @$(AS) -o $@ $(AFLAGS) $< -C_OBJS = _afailed.o abort.o perror.o +C_OBJS = _afailed.o abort.o perror.o sleep.o S_OBJS = copydata.o memcpy.o memset.o zerobss.o all: $(C_OBJS) $(S_OBJS) diff --git a/libsrc/geos/common/sleep.c b/libsrc/geos/common/sleep.c new file mode 100644 index 000000000..32b9689d0 --- /dev/null +++ b/libsrc/geos/common/sleep.c @@ -0,0 +1,23 @@ +/* + * sleep.c + * + * Maciej 'YTM/Elysium' Witkowiak, 15.08.2003 + * + */ + +#include + +unsigned __fastcall__ sleep (unsigned wait) +{ + char typ; + + if ( (get_tv()) & TV_NTSC ) { + typ = 60; + } else { + typ = 50; + } + + Sleep(wait*typ); + + return 0; +}