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
bff7ffbc
Commit
bff7ffbc
authored
May 09, 2019
by
Vladimir Glavnyy
Committed by
Wouter van Oortmerssen
May 09, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add detection of strtoull_l function (#5333) (#5337)
parent
107c0898
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
CMakeLists.txt
CMakeLists.txt
+9
-3
No files found.
CMakeLists.txt
View file @
bff7ffbc
...
...
@@ -42,12 +42,18 @@ if(DEFINED FLATBUFFERS_MAX_PARSING_DEPTH)
message
(
STATUS
"FLATBUFFERS_MAX_PARSING_DEPTH:
${
FLATBUFFERS_MAX_PARSING_DEPTH
}
"
)
endif
()
# Auto-detect locale-narrow 'strtod_l'
function
.
# Auto-detect locale-narrow 'strtod_l'
and 'strtoull_l' functions
.
if
(
NOT DEFINED FLATBUFFERS_LOCALE_INDEPENDENT
)
set
(
FLATBUFFERS_LOCALE_INDEPENDENT 0
)
if
(
MSVC
)
check_cxx_symbol_exists
(
_strtof_l stdlib.h FLATBUFFERS_LOCALE_INDEPENDENT
)
check_cxx_symbol_exists
(
_strtof_l stdlib.h FLATBUFFERS_HAS_STRTOF_L
)
check_cxx_symbol_exists
(
_strtoui64_l stdlib.h FLATBUFFERS_HAS_STRTOULL_L
)
else
()
check_cxx_symbol_exists
(
strtof_l stdlib.h FLATBUFFERS_LOCALE_INDEPENDENT
)
check_cxx_symbol_exists
(
strtof_l stdlib.h FLATBUFFERS_HAS_STRTOF_L
)
check_cxx_symbol_exists
(
strtoull_l stdlib.h FLATBUFFERS_HAS_STRTOULL_L
)
endif
()
if
(
FLATBUFFERS_HAS_STRTOF_L AND FLATBUFFERS_HAS_STRTOULL_L
)
set
(
FLATBUFFERS_LOCALE_INDEPENDENT 1
)
endif
()
endif
()
add_definitions
(
-DFLATBUFFERS_LOCALE_INDEPENDENT=$<BOOL:
${
FLATBUFFERS_LOCALE_INDEPENDENT
}
>
)
...
...
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