From c6dc46b33cae5230dcbdf024da95532ea0cd1891 Mon Sep 17 00:00:00 2001 From: dos-reis Date: Tue, 9 Sep 2008 05:24:24 +0000 Subject: * lib/sockio-c.c (openaxiom_sleep): Move to open-axiom.h. * clef/edible.c: Include "open-axiom.h". Use openaxiom_sleep, not sleep. * graph/view2D/viewport2D.c: Likewise. * graph/viewAlone/spoon2D.c: Likewise. * graph/viewAlone/spoonComp.c: Likewise. * graph/viewman/fun2D.c: Likewise. * graph/viewman/fun3D.c: Likewise. * hyper/spadint.c: Likewise. * sman/session.c: Likewise. * sman/sman.c: Likewise. --- src/lib/sockio-c.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'src/lib') diff --git a/src/lib/sockio-c.c b/src/lib/sockio-c.c index b3e4ca24..8705b08e 100644 --- a/src/lib/sockio-c.c +++ b/src/lib/sockio-c.c @@ -94,22 +94,6 @@ int spad_server_number = -1; #include "sockio.h" -/* The function sleep() is not available under Windows. Instead, they - have Sleep(); with capital S, please. Furthermore, it does not - take argument in second, but in milliseconds, three order - of magnitude of difference when compared to the Unix world. - We abstract over that difference here. */ - -static inline void -openaxiom_sleep(int n) -{ -#ifdef __WIN32__ - Sleep(n * 1000); -#else - sleep(n); -#endif -} - /* Non zero if the host system module support for socket is activated. This is needed only for MS platforms. */ static int openaxiom_socket_module_loaded = 0; -- cgit v1.2.3