aboutsummaryrefslogtreecommitdiff
path: root/src/compat
Commit message (Collapse)AuthorAgeFilesLines
* Add compile time verification of assumptions we're currently making ↵practicalswift2019-02-141-0/+49
| | | | implicitly/tacitly
* Merge #13665: [build] Add risc-v support to gitianWladimir J. van der Laan2018-08-161-0/+2
|\ | | | | | | | | | | | | | | | | | | | | c4aecd1d80801f3e3dd4bde887b5d1a11e8452b7 Add risc-v 64-bit to gitian (Chun Kuan Lee) 96dda8b0589affb88a909aaf62e95bebc4c18ba2 [depends] Add riscv qt depends support for cross compiling bitcoin-qt (Chun Kuan Lee) Pull request description: Based on ~#13660~ #13710 , add gitian tarball for RISC-V Tree-SHA512: 8db73545a2ea7fe03fa156598479335ea3c79aa3fb9c5cc44b8563094b1deb7c94d29c1dab47fac129dbfa2e3e774301b526474beeeb59c9b0087d3ea087dbd6
| * Add risc-v 64-bit to gitianChun Kuan Lee2018-08-091-0/+2
| |
* | Update copyright headers to 2018DrahtBot2018-07-276-6/+6
|/
* scripted-diff: prefer MAC_OSX over __APPLE__fanquake2018-07-251-2/+2
| | | | | | -BEGIN VERIFY SCRIPT- sed -i 's/__APPLE__/MAC_OSX/g' src/compat/byteswap.h src/util.cpp -END VERIFY SCRIPT-
* GCC-7 and glibc-2.27 compat codeChun Kuan Lee2018-06-021-0/+45
|
* Default to defining endian-conversion DECLs in compat w/o configMatt Corallo2018-04-161-0/+45
| | | | | | | | | | | | | While this isn't a supported build configuration, some build systems need to build without going through our autotools steps, so defaulting to something sane may make it easier to build. Specifically, this fixes the inability to build rust-bitcoinconsensus on some non-x86 platforms. It needs to build without our autotools/configure steps to ensure correct compile args are passed from the rust build system to gcc. Converting the args from the rust build system to gcc would be a lot of unmaintainable work.
* Increment MIT Licence copyright header year on files modified in 2017Akira Takizawa2018-01-036-6/+6
|
* Merge #11140: Trivial: Improve #endif commentsWladimir J. van der Laan2017-11-171-3/+3
|\ | | | | | | | | | | | | | | | | | | ac1cf8d Trivial: Improve #endif comments (danra) Pull request description: Improve the #endif comments for the '#if HAVE_DECL_BSWAP_XX == 0' preprocessor conditions, so each shows the full condition which it closes. Tree-SHA512: f533311fa48cb2f46f6490b6c965ad5f8861dcfad70c56d70e31fa989b422880c78b2dd6f24f648b19d3a22f767606e0de5cf1cb71445012b42c97ac2149295e
| * Trivial: Improve #endif commentsdanra2017-08-251-3/+3
| | | | | | Improve the #endif comments for the '#if HAVE_DECL_BSWAP_XX == 0' preprocessor conditions, so each shows the full condition which it closes.
* | scripted-diff: Replace #include "" with #include <> (ryanofsky)MeshCollider2017-11-165-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -BEGIN VERIFY SCRIPT- for f in \ src/*.cpp \ src/*.h \ src/bench/*.cpp \ src/bench/*.h \ src/compat/*.cpp \ src/compat/*.h \ src/consensus/*.cpp \ src/consensus/*.h \ src/crypto/*.cpp \ src/crypto/*.h \ src/crypto/ctaes/*.h \ src/policy/*.cpp \ src/policy/*.h \ src/primitives/*.cpp \ src/primitives/*.h \ src/qt/*.cpp \ src/qt/*.h \ src/qt/test/*.cpp \ src/qt/test/*.h \ src/rpc/*.cpp \ src/rpc/*.h \ src/script/*.cpp \ src/script/*.h \ src/support/*.cpp \ src/support/*.h \ src/support/allocators/*.h \ src/test/*.cpp \ src/test/*.h \ src/wallet/*.cpp \ src/wallet/*.h \ src/wallet/test/*.cpp \ src/wallet/test/*.h \ src/zmq/*.cpp \ src/zmq/*.h do base=${f%/*}/ relbase=${base#src/} sed -i "s:#include \"\(.*\)\"\(.*\):if test -e \$base'\\1'; then echo \"#include <\"\$relbase\"\\1>\\2\"; else echo \"#include <\\1>\\2\"; fi:e" $f done -END VERIFY SCRIPT-
* | Merge #11144: Move local include to before system includesWladimir J. van der Laan2017-08-281-2/+2
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | eefc2f3 Move local include to before system includes (danra) Pull request description: Prevents accidental missing includes and hidden dependencies in the local file. Tree-SHA512: 466b9dd53c596980fdbcccf1dfd8f34eb7ec5b32323ccb635e5705efcedc81af8fbe155ac57b9a2fc5c1f516489e940d1762b3508ded1fb54e187219bb9f75e6
| * | Move local include to before system includesdanra2017-08-251-2/+2
| |/ | | | | Prevents accidental missing includes and hidden dependencies in the local file.
* / Simplify bswap_16 implementationdanra2017-08-251-1/+1
|/ | | | Simplify bswap_16 implementation on platforms which don't already have it defined. This has no effect on the generated assembly; it just simplifies the source code.
* [trivial] Add end of namespace commentspracticalswift2017-05-312-2/+2
|
* Increment MIT Licence copyright header year on files modified in 2016isle29832016-12-312-2/+2
| | | | | | Edited via: $ contrib/devtools/copyright_header.py update .
* Uses built-in byte swap if available (Apple) and if bswap_XX is undefined.Karl-Johan Alm2016-12-171-0/+19
| | | | Defers to pre-defined version if found (e.g. protobuf). For protobuf case, the definitions are identical and thus include order should not affect results.
* [copyright] copyright header style uniformisle29832016-11-062-2/+2
| | | | | | | | | | | | | | | | | | | | | | | Three categories of modifications: 1) 1 instance of 'The Bitcoin Core developers \n', 1 instance of 'the Bitcoin Core developers\n', 3 instances of 'Bitcoin Core Developers\n', and 12 instances of 'The Bitcoin developers\n' are made uniform with the 443 instances of 'The Bitcoin Core developers\n' 2) 3 instances of 'BitPay, Inc\.\n' are made uniform with the other 6 instances of 'BitPay Inc\.\n' 3) 4 instances where there was no '(c)' between the 'Copyright' and the year where it deviates from the style of the local directory.
* Bump copyright headers to 2015MarcoFalke2015-12-131-1/+1
|
* Add an alternate location of endian.h headerAndriy Voskoboinyk2015-06-071-0/+2
|
* build: Endian compatibilityWladimir J. van der Laan2015-03-062-0/+241
| | | | | | | | - Detect endian instead of stopping configure on big-endian - Add `byteswap.h` and `endian.h` header for compatibility with Windows and other operating systems that don't come with them - Update `crypto/common.h` functions to use compat endian header
* build: remove libstdc++ backwards-compatCory Fields2015-02-231-94/+0
| | | | | | | | Backwards-compatibility for libstdc++ is not limited to straightforward abi changes. Symbol visibility also needs to be taken into consideration, and that really can't be addressed simply. Instead, just static-link libstdc++ for backwards-compat.
* Added "Core" to copyright headerssandakersmann2014-12-196-6/+6
| | | | | Github-Pull: #5494 Rebased-From: 15de949bb9277e442302bdd8dee299a8d6deee60
* Check for strnlen and provide it if it is not found.Pavel Janík2014-11-241-0/+18
|
* Fix all header definesPavel Janík2014-11-031-3/+3
|
* update license of compat and cryptoPhilip Kaufmann2014-09-295-5/+7
| | | | | | - change license to be just MIT for all files in compat and crypto - also add missing header end comments - ensure default header include style
* Apply clang-format on crypto/* and compat/*Pieter Wuille2014-09-254-33/+28
|
* libc-compat: add new symbol that's now neededCory Fields2014-08-081-0/+2
|
* build: fix build weirdness after 54372482.Cory Fields2014-06-232-2/+2
| | | | | | | | | | | | | bitcoin-config.h moved, but the old file is likely to still exist when reconfiguring or switching branches. This would've caused files to not rebuild correctly, and other strange problems. Make the path explicit so that the old one cannot be found. Core libs use config/bitcoin-config.h. Libs (like crypto) which don't want access to bitcoin's headers continue to use -Iconfig and #include bitcoin-config.h.
* small cleanup in src/compat .h and .cppPhilip Kaufmann2014-06-215-29/+58
| | | | | | - add license header - fix include guards - fix indentation
* sanity: add libc/stdlib sanity checksCory Fields2014-06-163-0/+129
| | | | | These are meant to test our back-compat stubs, but they are enabled for all builds for the sake of consistency.
* build: add symbol for upcoming gcc 4.9's libstdc++Cory Fields2014-04-111-0/+7
|
* build: add glibc/libstdc++ back-compat stubsCory Fields2014-04-102-0/+99
glibc/libstdc++ have added new symbols in later releases. When running a new binary against an older glibc, the run-time linker is unable to resolve the new symbols and the binary refuses to run. This can be fixed by adding our own versions of those functions, so that the build-time linker does not emit undefined symbols for them. This enables our binary releases to work on older Linux distros, while not incurring the downsides of a fully static binary.