diff options
author | snowdrop | 2004-09-14 13:23:10 +0000 |
---|---|---|
committer | snowdrop | 2004-09-14 13:23:10 +0000 |
commit | 1a7fd033326ff93f68a80cce0bc30565251d22e0 (patch) | |
tree | 1972166386d32dbfd4865d7aeac041c6565158a7 /nanohttp/nanohttp-common.h | |
parent | 15a7da227539217bc6f1e3f7651b59c9a73ae2aa (diff) | |
download | csoap-1a7fd033326ff93f68a80cce0bc30565251d22e0.tar.gz csoap-1a7fd033326ff93f68a80cce0bc30565251d22e0.tar.bz2 |
optimizing code and extracting some long functions into little functions
Diffstat (limited to 'nanohttp/nanohttp-common.h')
-rw-r--r-- | nanohttp/nanohttp-common.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/nanohttp/nanohttp-common.h b/nanohttp/nanohttp-common.h index ea38866..ef70b0f 100644 --- a/nanohttp/nanohttp-common.h +++ b/nanohttp/nanohttp-common.h @@ -1,5 +1,5 @@ /****************************************************************** - * $Id: nanohttp-common.h,v 1.8 2004/08/30 07:55:41 snowdrop Exp $ + * $Id: nanohttp-common.h,v 1.9 2004/09/14 13:23:10 snowdrop Exp $ * * CSOAP Project: A http client/server library in C * Copyright (C) 2003 Ferhat Ayaz @@ -38,6 +38,14 @@ #define SAVE_STR(str) ((str==0)?("(null)"):(str)) #endif +/* +Set Sleep function platform depended +*/ +#ifdef WIN32 + #define system_sleep(seconds) Sleep(seconds*1000); +#else + #define system_sleep(seconds) sleep(seconds); +#endif /* string function to compare strings ignoring case |