diff options
author | Chris Robinson <[email protected]> | 2015-12-04 19:09:48 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2015-12-04 19:09:48 -0800 |
commit | 482372577e6eaa9f4b857dc3a335e67efd1ee367 (patch) | |
tree | 0c025eae5873f32d1dcf641a675c3d95a4eb1dd3 /examples/common | |
parent | 4e6acfa0d549281efcbe8293d95b76a37deb370d (diff) |
Avoid using usleep in the examples
We already have an al_nssleep wrapper in the common lib we can use.
Diffstat (limited to 'examples/common')
-rw-r--r-- | examples/common/alhelpers.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/examples/common/alhelpers.h b/examples/common/alhelpers.h index 62ed5be2..1b4d2fbf 100644 --- a/examples/common/alhelpers.h +++ b/examples/common/alhelpers.h @@ -1,18 +1,12 @@ #ifndef ALHELPERS_H #define ALHELPERS_H -#ifndef _WIN32 -#include <unistd.h> -#define Sleep(x) usleep((x)*1000) -#else -#define WIN32_LEAN_AND_MEAN -#include <windows.h> -#endif - #include "AL/alc.h" #include "AL/al.h" #include "AL/alext.h" +#include "threads.h" + #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ |