summaryrefslogtreecommitdiffstats
path: root/src/zero.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/zero.c')
-rw-r--r--src/zero.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/zero.c b/src/zero.c
index 4f477dc..9d4c054 100644
--- a/src/zero.c
+++ b/src/zero.c
@@ -1,3 +1,7 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <string.h>
#include "macro.h"
@@ -11,7 +15,7 @@ static void zero_u8(void *dst, size_t dstr, size_t bytes) {
else {
for (; bytes > 0; bytes --, d += dstr)
*d = 0x80;
- }
+ }
}
static void zero_16(void *dst, size_t dstr, size_t bytes) {
@@ -23,7 +27,7 @@ static void zero_16(void *dst, size_t dstr, size_t bytes) {
else {
for (; n > 0; n --, d += dstr/sizeof(uint16_t))
*d = 0;
- }
+ }
}
static void zero_32(void *dst, size_t dstr, size_t bytes) {
@@ -35,7 +39,7 @@ static void zero_32(void *dst, size_t dstr, size_t bytes) {
else {
for (; n > 0; n --, d += dstr/sizeof(uint32_t))
*d = 0;
- }
+ }
}
sa_zero_func_t sa_get_zero_func(sa_pcm_format_t f) {