blob: 0c51b7f4aedd4086198f70cebeaef2447058c067 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
$NetBSD: patch-ab,v 1.3 2004/05/03 16:25:07 minskim Exp $
--- src/DSP.cc.orig 2001-12-01 19:05:15.000000000 -0600
+++ src/DSP.cc
@@ -14,8 +14,8 @@
#include <math.h>
#include <errno.h>
#include <string.h>
-#include <values.h>
-#include <byteswap.h>
+#include <limits.h>
+#include <sys/bswap.h>
#include "DSP.h"
@@ -168,7 +168,7 @@ DSP::swapbuffer (void* buffer, int count
int n = count / 2;
for (int i = n; i != 0; i--) {
- *tmp_buffer = bswap_16 (*tmp_buffer);
+ *tmp_buffer = bswap16 (*tmp_buffer);
tmp_buffer++;
}
}
|