aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2008-09-09 05:24:24 +0000
committerdos-reis <gdr@axiomatics.org>2008-09-09 05:24:24 +0000
commitc6dc46b33cae5230dcbdf024da95532ea0cd1891 (patch)
treebec45d8eafffbf2c1ff769bfed962bf1f86b4567 /src/lib
parentc0f80aca887462749a7cdc4fcacc579ee59aa850 (diff)
downloadopen-axiom-c6dc46b33cae5230dcbdf024da95532ea0cd1891.tar.gz
* 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.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/sockio-c.c16
1 files changed, 0 insertions, 16 deletions
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;