Fixed compilation errors in Ubuntu 64-bit

git-svn-id: https://rapidjson.googlecode.com/svn/trunk@29 c5894555-1306-4e8d-425f-1f6f381ee07c
This commit is contained in:
miloyip@gmail.com
2011-11-22 15:47:11 +00:00
parent 9ae680d35b
commit 78492f9962
5 changed files with 14 additions and 7 deletions

View File

@@ -109,7 +109,7 @@ TEST_F(Platform, read) {
#else
TEST_F(Platform, read) {
for (int i = 0; i < kTrialCount; i++) {
int fd = open(filename_, O_BINARY | O_RDONLY);
int fd = open(filename_, O_RDONLY);
ASSERT_NE(-1, fd);
ASSERT_EQ(length_, read(fd, temp_, length_));
EXPECT_EQ(checkSum_, CheckSum());
@@ -138,7 +138,7 @@ TEST_F(Platform, MapViewOfFile) {
#ifdef _POSIX_MAPPED_FILES
TEST_F(Platform, mmap) {
for (int i = 0; i < kTrialCount; i++) {
int fd = open(filename_, _O_BINARY | _O_RDONLY);
int fd = open(filename_, O_RDONLY);
ASSERT_NE(-1, fd);
void *p = mmap(NULL, length_, PROT_READ, MAP_PRIVATE, fd, 0);
ASSERT_TRUE(p != NULL);