From d7d99adc915583416dd8c70491ec7fc4ac71a543 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 26 Nov 2018 23:18:51 -0800 Subject: Avoid including threads.h in the example helpers --- examples/alrecord.c | 1 + examples/common/alhelpers.c | 1 + examples/common/alhelpers.h | 10 +++++----- 3 files changed, 7 insertions(+), 5 deletions(-) (limited to 'examples') diff --git a/examples/alrecord.c b/examples/alrecord.c index f60a3055..30f5f792 100644 --- a/examples/alrecord.c +++ b/examples/alrecord.c @@ -27,6 +27,7 @@ #include #include #include +#include #include #include "AL/al.h" diff --git a/examples/common/alhelpers.c b/examples/common/alhelpers.c index 657c10d3..6a583497 100644 --- a/examples/common/alhelpers.c +++ b/examples/common/alhelpers.c @@ -29,6 +29,7 @@ * channel configs and sample types. */ #include +#include #include #include "AL/al.h" diff --git a/examples/common/alhelpers.h b/examples/common/alhelpers.h index e3e638ac..14edf5d9 100644 --- a/examples/common/alhelpers.h +++ b/examples/common/alhelpers.h @@ -1,15 +1,15 @@ #ifndef ALHELPERS_H #define ALHELPERS_H +#include + #include "AL/alc.h" #include "AL/al.h" #include "AL/alext.h" -#include "threads.h" - #ifdef __cplusplus extern "C" { -#endif /* __cplusplus */ +#endif /* Some helper functions to get the name from the format enums. */ const char *FormatName(ALenum type); @@ -30,7 +30,7 @@ int altimespec_get(struct timespec *ts, int base); void al_nssleep(unsigned long nsec); #ifdef __cplusplus -} -#endif /* __cplusplus */ +} // extern "C" +#endif #endif /* ALHELPERS_H */ -- cgit v1.2.3