diff options
author | Bluebie <a@creativepony.com> | 2013-12-17 11:58:55 +1100 |
---|---|---|
committer | Bluebie <a@creativepony.com> | 2013-12-17 11:58:55 +1100 |
commit | de416941068db51412566821c08ee6b11637d06c (patch) | |
tree | 4aa3bf8d2dcfd86de3c41be04959c99b4bf51c2e | |
parent | f40aad20287b7b928a2971202a12d21bc4f5bdb5 (diff) | |
download | micronucleus-de416941068db51412566821c08ee6b11637d06c.tar.gz micronucleus-de416941068db51412566821c08ee6b11637d06c.tar.bz2 micronucleus-de416941068db51412566821c08ee6b11637d06c.zip |
commandline: style stuff, no functional changes
-rw-r--r-- | commandline/library/littleWire_util.c | 19 | ||||
-rw-r--r-- | commandline/library/littleWire_util.h | 5 |
2 files changed, 12 insertions, 12 deletions
diff --git a/commandline/library/littleWire_util.c b/commandline/library/littleWire_util.c index 985c4a3..c34460c 100644 --- a/commandline/library/littleWire_util.c +++ b/commandline/library/littleWire_util.c @@ -1,14 +1,13 @@ #include <littleWire_util.h> /* Delay in miliseconds */ -void delay(unsigned int duration) -{ - #if defined _WIN32 || defined _WIN64 - // use windows sleep api with milliseconds - // * 2 to make it run at half speed, because windows seems to have some trouble with this... - Sleep(duration * 2); - #else - // use standard unix api with microseconds - usleep(duration*1000); - #endif +void delay(unsigned int duration) { + #if defined _WIN32 || defined _WIN64 + // use windows sleep api with milliseconds + // * 2 to make it run at half speed, because windows seems to have some trouble with this... + Sleep(duration * 2); + #else + // use standard unix api with microseconds + usleep(duration*1000); + #endif } diff --git a/commandline/library/littleWire_util.h b/commandline/library/littleWire_util.h index 27dc172..1f060c3 100644 --- a/commandline/library/littleWire_util.h +++ b/commandline/library/littleWire_util.h @@ -2,12 +2,13 @@ #define LITTLEWIRE_UTIL_H #if defined WIN - #include <windows.h> + #include <windows.h> #else - #include <unistd.h> + #include <unistd.h> #endif /* Delay in miliseconds */ void delay(unsigned int duration); +// end LITTLEWIRE_UTIL_H section: #endif |