diff options
author | Stefan Laner <laner@itestra.de> | 2013-10-22 15:13:28 +0200 |
---|---|---|
committer | Stefan Laner <laner@itestra.de> | 2013-10-22 15:13:28 +0200 |
commit | e633fcbff0187f0b3d422af650357d926fed6055 (patch) | |
tree | 223ceb0363516914706963b6fd0e77e28f7b4056 | |
parent | 3f95a356a8f74951c5c41eb498fe21e5c38d8c6e (diff) | |
download | genivi-common-api-runtime-e633fcbff0187f0b3d422af650357d926fed6055.tar.gz |
added usleep (workaround) definition for windows
-rwxr-xr-x | src/CommonAPI/types.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/CommonAPI/types.h b/src/CommonAPI/types.h index c4f41e3..dcfc4e9 100755 --- a/src/CommonAPI/types.h +++ b/src/CommonAPI/types.h @@ -24,6 +24,12 @@ static void f(void) #endif + +#ifdef WIN32 +#define usleep(micSec) \ + std::this_thread::sleep_for(std::chrono::microseconds(micSec)) +#endif + namespace CommonAPI { enum class AvailabilityStatus { |