Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
flatbuffers
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
flatbuffers
Commits
f52ddfbd
Commit
f52ddfbd
authored
Apr 21, 2017
by
Wouter van Oortmerssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Android STLPort build.
Change-Id: Iceca7b8b455c8463d9b82b928332a875dee3d19e
parent
808b44f8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
util.h
include/flatbuffers/util.h
+1
-5
idl_gen_cpp.cpp
src/idl_gen_cpp.cpp
+5
-0
No files found.
include/flatbuffers/util.h
View file @
f52ddfbd
...
@@ -42,6 +42,7 @@
...
@@ -42,6 +42,7 @@
#include "flatbuffers/flatbuffers.h"
#include "flatbuffers/flatbuffers.h"
namespace
flatbuffers
{
namespace
flatbuffers
{
// Convert an integer or floating point value to a string.
// Convert an integer or floating point value to a string.
...
@@ -114,11 +115,6 @@ inline uint64_t StringToUInt(const char *str, char **endptr = nullptr,
...
@@ -114,11 +115,6 @@ inline uint64_t StringToUInt(const char *str, char **endptr = nullptr,
#endif
#endif
}
}
// Pedantic warning free version of toupper().
inline
char
ToUpper
(
char
c
)
{
return
static_cast
<
char
>
(
::
toupper
(
c
));
}
typedef
bool
(
*
LoadFileFunction
)(
const
char
*
filename
,
bool
binary
,
typedef
bool
(
*
LoadFileFunction
)(
const
char
*
filename
,
bool
binary
,
std
::
string
*
dest
);
std
::
string
*
dest
);
typedef
bool
(
*
FileExistsFunction
)(
const
char
*
filename
);
typedef
bool
(
*
FileExistsFunction
)(
const
char
*
filename
);
...
...
src/idl_gen_cpp.cpp
View file @
f52ddfbd
...
@@ -23,6 +23,11 @@
...
@@ -23,6 +23,11 @@
namespace
flatbuffers
{
namespace
flatbuffers
{
// Pedantic warning free version of toupper().
inline
char
ToUpper
(
char
c
)
{
return
static_cast
<
char
>
(
::
toupper
(
c
));
}
static
std
::
string
GeneratedFileName
(
const
std
::
string
&
path
,
static
std
::
string
GeneratedFileName
(
const
std
::
string
&
path
,
const
std
::
string
&
file_name
)
{
const
std
::
string
&
file_name
)
{
return
path
+
file_name
+
"_generated.h"
;
return
path
+
file_name
+
"_generated.h"
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment