Avoid including threads.h in the example helpers

This commit is contained in:
Chris Robinson 2018-11-26 23:18:51 -08:00
parent d06f76957c
commit d7d99adc91
3 changed files with 7 additions and 5 deletions

View File

@ -27,6 +27,7 @@
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <math.h>
#include "AL/al.h"

View File

@ -29,6 +29,7 @@
* channel configs and sample types. */
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include "AL/al.h"

View File

@ -1,15 +1,15 @@
#ifndef ALHELPERS_H
#define ALHELPERS_H
#include <time.h>
#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 */