ref: b045a26a6887582c4463ab7b161c0772787bcac4
parent: 2d333b4de61bc89e9936db12b321f73ed81e625b
author: David Schleef <[email protected]>
date: Sat Jan 1 14:52:20 EST 2011
MSVC build fixes
--- a/tests/ectest.c
+++ b/tests/ectest.c
@@ -37,9 +37,9 @@
int i;
int ret;
unsigned int seed;
+ unsigned char *ptr;
ret=0;
entropy=0;
- unsigned char *ptr;
if (_argc > 2) {
fprintf(stderr, "Usage: %s [<seed>]\n", _argv[0]);
return 1;
--- a/tests/tandem-test.c
+++ b/tests/tandem-test.c
@@ -43,7 +43,6 @@
#include <stdlib.h>
#include <sys/types.h>
#include <time.h>
-#include <unistd.h>
#include <math.h>
#include <string.h>
--- a/tools/celtenc.c
+++ b/tools/celtenc.c
@@ -52,6 +52,10 @@
#include <string.h>
#include <time.h>
+#ifdef _MSC_VER
+#define snprintf _snprintf
+#endif
+
#include "celt.h"
#include "celt_header.h"
#include <ogg/ogg.h>