Compile on windows

- include <stdlib.h>
- export file
- fill out structs to make it compile with visual studio

Signed-off-by: Love Hornquist Astrand <lha@h5l.org>
This commit is contained in:
Asanka Herath
2009-11-24 12:33:37 -08:00
committed by Love Hornquist Astrand
parent c9fdd77bc8
commit 1d624801c1
12 changed files with 40 additions and 10 deletions

View File

@@ -67,7 +67,7 @@ struct testcase {
WIND_RW_BOM,
2, "\xfe\xff",
0,
0, { },
0, { 0 },
WIND_RW_BE
},
/* no input */
@@ -75,7 +75,7 @@ struct testcase {
WIND_RW_BOM,
0, "",
0,
0, { },
0, { 0 },
WIND_RW_BOM
},
/* BOM only */
@@ -83,7 +83,7 @@ struct testcase {
WIND_RW_BOM,
2, "\xff\xfe",
0,
0, { },
0, { 0 },
WIND_RW_LE
},
/* water + z */
@@ -123,7 +123,7 @@ struct testcase {
WIND_RW_BOM,
1, "\xfe",
WIND_ERR_LENGTH_NOT_MOD2,
0, { },
0, { 0 },
WIND_RW_BOM
},
/* error, missing BOM */
@@ -131,7 +131,7 @@ struct testcase {
WIND_RW_BOM,
2, "\x00\x20",
WIND_ERR_NO_BOM,
0, { },
0, { 0 },
WIND_RW_BOM
},
/* error, overrun */