libstrawberry-common: check for library/includes for backtrace() (#364)
This is a non-standard header, so it should be checked properly. This fixes compilation with musl libc and possibly other C library implementations.
This commit is contained in:
25
ext/libstrawberry-common/backtrace_inc.h.in
Normal file
25
ext/libstrawberry-common/backtrace_inc.h.in
Normal file
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* Strawberry Music Player
|
||||
* Copyright 2013, Jonas Kvinge <jonas@strawbs.net>
|
||||
*
|
||||
* Strawberry is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* Strawberry is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with Strawberry. If not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
*/
|
||||
|
||||
#cmakedefine01 Backtrace_FOUND
|
||||
|
||||
#if Backtrace_FOUND
|
||||
# define HAVE_BACKTRACE 1
|
||||
# include <${Backtrace_HEADER}>
|
||||
#endif
|
||||
Reference in New Issue
Block a user