Skip to content

Commit 15828a9

Browse files
author
minggo
committed
Merge pull request #61 from MSOpenTech/wp8-flatbuffers-fix
fixes for WP8 and Universal App
2 parents ecf81a9 + 8997c45 commit 15828a9

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

flatbuffers/idl_parser.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,11 @@ uoffset_t Parser::ParseVector(const Type &type) {
565565
Value val;
566566
val.type = type;
567567
ParseAnyValue(val, NULL);
568+
#ifdef WP8
569+
field_stack_.push_back(std::make_pair(val, (FieldDef *)nullptr));
570+
#else
568571
field_stack_.push_back(std::make_pair(val, nullptr));
572+
#endif
569573
count++;
570574
if (token_ == ']') break;
571575
Expect(',');

flatbuffers/util.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ inline void EnsureDirExists(const std::string &filepath) {
171171
inline std::string AbsolutePath(const std::string &filepath) {
172172
#ifdef _WIN32
173173
char abs_path[MAX_PATH];
174-
#ifdef WP8
175-
false
174+
#if defined(WP8) || defined(WINRT)
175+
return ""
176176
#else
177177
return GetFullPathNameA(filepath.c_str(), MAX_PATH, abs_path, nullptr)
178178
#endif

0 commit comments

Comments
 (0)