Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
64786ec1
Commit
64786ec1
authored
May 16, 2017
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Main: omit "constexpr" on MIN_BUFFER_SIZE with GCC 4.x
parent
b3c82f88
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
NEWS
NEWS
+1
-0
Main.cxx
src/Main.cxx
+10
-2
No files found.
NEWS
View file @
64786ec1
ver 0.20.8 (not yet released)
* output
- osx: fix build failure due to missing "noexcept"
* fix build failure with GCC 4.x
ver 0.20.7 (2017/05/15)
* database
...
...
src/Main.cxx
View file @
64786ec1
...
...
@@ -121,8 +121,16 @@ static constexpr size_t KILOBYTE = 1024;
static
constexpr
size_t
MEGABYTE
=
1024
*
KILOBYTE
;
static
constexpr
size_t
DEFAULT_BUFFER_SIZE
=
4
*
MEGABYTE
;
static
constexpr
size_t
MIN_BUFFER_SIZE
=
std
::
max
(
CHUNK_SIZE
*
32
,
64
*
KILOBYTE
);
static
#if GCC_OLDER_THAN(5,0)
/* gcc 4.x has no "constexpr" for std::max() */
const
#else
constexpr
#endif
size_t
MIN_BUFFER_SIZE
=
std
::
max
(
CHUNK_SIZE
*
32
,
64
*
KILOBYTE
);
static
constexpr
unsigned
DEFAULT_BUFFER_BEFORE_PLAY
=
10
;
...
...
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