This is a minimal amount of #ifdef's to make stlport work.

Minimal, in the sense that this will only allow flatbuffers.h +
generated code to work. Everything else (tests, parsing, reflection
etc.) may still not compile with stlport.

Functionality has been reduced, some utility functions are not
available.

Tested: on Linux (no stlport), Android (stlport).

Change-Id: I3f8b6a88258c07d78964dd455fb9f99f65266301
This commit is contained in:
Wouter van Oortmerssen
2016-07-20 14:18:09 -07:00
parent 3101e327c0
commit 7c7c571bbe
3 changed files with 41 additions and 18 deletions

View File

@@ -25,7 +25,9 @@
#include "namespace_test/namespace_test1_generated.h"
#include "namespace_test/namespace_test2_generated.h"
#include <random>
#ifndef FLATBUFFERS_CPP98_STL
#include <random>
#endif
using namespace MyGame::Example;