-
Notifications
You must be signed in to change notification settings - Fork 442
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve c++ compatibility of htslib header files
Allow room in kputuw_dig2r for the nul byte on the end of the string used to initialize it. gcc doesn't mind it being dropped but g++ complains. Avoid INTx_MIN, INTx_MAX and SIZE_MAX macros from <stdint.h> in htslib/*.h header files. Old versions of glibc (before 2.18), and possibly other libc implementations don't automatically supply them when compiling as c++. Easiest solution is to not use them in these headers. (See https://sourceware.org/bugzilla/show_bug.cgi?id=15366) Fixes #771 (kstring.h error: initializer-string for array of chars is too long)
- Loading branch information
Showing
2 changed files
with
26 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters