Skip to content

Commit

Permalink
Merge pull request #2 from yukawa/fix_win_unicode_build
Browse files Browse the repository at this point in the history
Fix Windows build when UNICODE macro is specified.
  • Loading branch information
taku910 committed May 8, 2015
2 parents 5bfc9bc + ee7f04e commit fab2f5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zinnia/mmap.h
Expand Up @@ -112,8 +112,8 @@ template <class T> class Mmap {
CHECK_CLOSE_FALSE(false) << "unknown open mode:" << filename;
}

hFile = CreateFile(filename, mode1, FILE_SHARE_READ, 0,
OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0);
hFile = CreateFileA(filename, mode1, FILE_SHARE_READ, 0,
OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0);
CHECK_CLOSE_FALSE(hFile != INVALID_HANDLE_VALUE)
<< "CreateFile() failed: " << filename;

Expand Down

0 comments on commit fab2f5c

Please sign in to comment.