1
0
mirror of https://git.sr.ht/~grimler/Heimdall synced 2025-02-28 04:51:17 +00:00

17 Commits

Author SHA1 Message Date
719edaff9e heimdall, libpit: fix (MSVC) nullptr check
We should only need to define it for old versions of MSVC.  On linux
it seems that defining nullptr does not really have any downsides, but
on android we get some obscure compiler errors due to how nullptr is
defined.  Fix nullptr check and thereby make heimdall compile on
android.

Error message looked something like:

[  6%] Building CXX object libpit/CMakeFiles/pit.dir/source/libpit.cpp.o
In file included from /data/data/com.termux/files/home/Heimdall/libpit/source/libpit.cpp:22:
In file included from /data/data/com.termux/files/home/Heimdall/libpit/source/libpit.h:38:
In file included from /data/data/com.termux/files/usr/include/c++/v1/string:504:
In file included from /data/data/com.termux/files/usr/include/c++/v1/string_view:175:
In file included from /data/data/com.termux/files/usr/include/c++/v1/__string:57:
In file included from /data/data/com.termux/files/usr/include/c++/v1/algorithm:643:
/data/data/com.termux/files/usr/include/c++/v1/memory:2268:9: error: cannot initialize a member subobject of type 'libpit::PitEntry **' with an rvalue of type 'int'
      : __value_(_VSTD::forward<_Up>(__u))
        ^        ~~~~~~~~~~~~~~~~~~~~~~~~
/data/data/com.termux/files/usr/include/c++/v1/memory:2353:9: note: in instantiation of function template specialization 'std::__compressed_pair_elem<libpit::PitEntry **, 0, false>::__compressed_pair_elem<int, void>' requested here
      : _Base1(std::forward<_U1>(__t1)), _Base2(std::forward<_U2>(__t2)) {}
        ^
/data/data/com.termux/files/usr/include/c++/v1/vector:436:7: note: in instantiation of function template specialization 'std::__compressed_pair<libpit::PitEntry **, std::allocator<libpit::PitEntry *>>::__compressed_pair<int, std::__default_init_tag>' requested here
      __end_cap_(nullptr, __default_init_tag())
      ^
/data/data/com.termux/files/usr/include/c++/v1/vector:495:5: note: in instantiation of member function 'std::__vector_base<libpit::PitEntry *, std::allocator<libpit::PitEntry *>>::__vector_base' requested here
    vector() _NOEXCEPT_(is_nothrow_default_constructible<allocator_type>::value)
    ^
/data/data/com.termux/files/home/projects/Heimdall/libpit/source/libpit.cpp:65:10: note: in instantiation of member function 'std::vector<libpit::PitEntry *>::vector' requested here
PitData::PitData()
         ^
2021-11-25 21:26:37 +01:00
af3f0d6ac9 Convert all files to unix line endings
All except Win32/README.txt.
2021-05-03 14:24:06 +02:00
8709370bc4 It's 2017. Where did the years go? 2017-05-12 03:47:37 +10:00
69c3aafd81 Fix UNIX CMake (and OS X autotools) builds for Heimdall CLI 2014-12-10 00:57:29 +11:00
ee53613ec1 Continue to support autotools... for now 2014-11-17 16:05:34 +11:00
1ddfdc1a88 CMake files for Heimdall CLI and mingw support 2014-11-17 07:02:39 +11:00
082fb091f1 Fixed support for large files (up to 2^32 - 1 bytes)
The Loke protocol supports 32-bit unsigned for the size of files being
flashed. However, POSIX file commands only support 32-bit (signed). As
such we now have platform specific support for larger files.
2014-06-01 14:09:56 +10:00
b62d66b297 Windows does not provide (or require) va_copy. 2014-05-17 04:36:51 +10:00
9f957a1937 Updated copyright notices to 2014 2014-05-06 22:53:10 +10:00
07dcba54fc Update copyright notices, version identifier and documentation for 1.4.0 release. 2013-05-13 00:08:30 +10:00
4d850a272a - Updated MSVC projects to MSVC2012.
- Changed from libusb-1.0 to libusbx.
- Upgraded to C++11 (defined as C++0x for backwards compatibility with gcc < 4.7).
2013-01-23 00:44:12 +11:00
31b1b0b2b0 - Changed interpretation of packet size reponses of 0 from meaning "don't
care" to "unsupported".
- Changed block size in libpit to mean either block size or block offset.
2013-01-22 23:53:30 +11:00
6cd6b35c73 Heimdall 1.4 RC1:
- Massive refactoring.
    - Support for Qualcomm based devices.
    - Print PIT from file.
    - Use partition names as arguments e.g. --HIDDEN, --KERNEL, --MOVINAND etc.
    - Heimdall Frontend UI improvements.
    - And much more...
2012-10-02 01:41:25 +10:00
66f1e84dd2 Updated version to 1.3.2 and copyright notices to 2012. 2012-03-31 12:22:17 +11:00
70c1e8e5ba 1.3 beta 2011-07-08 23:40:28 +10:00
1ef6e97b90 1.2.0b Heimdall command line update. Large update that adds lots of PIT file functionality and better support for more devices. 2011-06-01 07:06:09 +10:00
46f2c1134d Removed the "Heimdall" folder and moved its contents to the root directory. 2010-12-05 00:25:04 +11:00