Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 651956 Details for
Bug 734724
media-libs/freeimage-3.18.0-r2: fails to build with >=media-libs/libraw-0.20.0
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch removing "substream" from Source/FreeImage/PluginRAW.cpp
libraw_0_20.patch (text/plain), 1.49 KB, created by
Bernd Feige
on 2020-08-01 09:18:26 UTC
(
hide
)
Description:
Patch removing "substream" from Source/FreeImage/PluginRAW.cpp
Filename:
MIME Type:
Creator:
Bernd Feige
Created:
2020-08-01 09:18:26 UTC
Size:
1.49 KB
patch
obsolete
>Index: FreeImage/Source/FreeImage/PluginRAW.cpp >=================================================================== >--- FreeImage.orig/Source/FreeImage/PluginRAW.cpp >+++ FreeImage/Source/FreeImage/PluginRAW.cpp >@@ -63,17 +63,14 @@ public: > } > > int read(void *buffer, size_t size, size_t count) { >- if(substream) return substream->read(buffer, size, count); > return _io->read_proc(buffer, (unsigned)size, (unsigned)count, _handle); > } > > int seek(INT64 offset, int origin) { >- if(substream) return substream->seek(offset, origin); > return _io->seek_proc(_handle, (long)offset, origin); > } > > INT64 tell() { >- if(substream) return substream->tell(); > return _io->tell_proc(_handle); > } > >@@ -83,13 +80,11 @@ public: > > int get_char() { > int c = 0; >- if(substream) return substream->get_char(); > if(!_io->read_proc(&c, 1, 1, _handle)) return -1; > return c; > } > > char* gets(char *buffer, int length) { >- if (substream) return substream->gets(buffer, length); > memset(buffer, 0, length); > for(int i = 0; i < length; i++) { > if(!_io->read_proc(&buffer[i], 1, 1, _handle)) >@@ -104,7 +99,6 @@ public: > std::string buffer; > char element = 0; > bool bDone = false; >- if(substream) return substream->scanf_one(fmt,val); > do { > if(_io->read_proc(&element, 1, 1, _handle) == 1) { > switch(element) { >@@ -127,7 +121,6 @@ public: > } > > int eof() { >- if(substream) return substream->eof(); > return (_io->tell_proc(_handle) >= _eof); > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 734724
:
651698
| 651956 |
670805