forked from microsoft/vcpkg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ogre] Fix function override problem in macos system. (microsoft#31106)
* fix osx override error * update version * optimized syntax * update version * fix function * update version
- Loading branch information
1 parent
3edf135
commit bc2c3ee
Showing
5 changed files
with
45 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
diff --git a/PlugIns/EXRCodec/src/O_IStream.cpp b/PlugIns/EXRCodec/src/O_IStream.cpp | ||
index 6f668d5..eba9ac7 100644 | ||
--- a/PlugIns/EXRCodec/src/O_IStream.cpp | ||
+++ b/PlugIns/EXRCodec/src/O_IStream.cpp | ||
@@ -39,11 +39,11 @@ bool O_IStream::read(char c[], int n) { | ||
return _stream.eof(); | ||
} | ||
|
||
-Int64 O_IStream::tellg() { | ||
+uint64_t O_IStream::tellg() { | ||
return _stream.getCurrentPtr() - _stream.getPtr(); | ||
} | ||
|
||
-void O_IStream::seekg(Int64 pos) { | ||
+void O_IStream::seekg(uint64_t pos) { | ||
_stream.seek(pos); | ||
} | ||
|
||
diff --git a/PlugIns/EXRCodec/src/O_IStream.h b/PlugIns/EXRCodec/src/O_IStream.h | ||
index 8eb09d8..dc301ae 100644 | ||
--- a/PlugIns/EXRCodec/src/O_IStream.h | ||
+++ b/PlugIns/EXRCodec/src/O_IStream.h | ||
@@ -46,8 +46,8 @@ public: | ||
IStream (file_name), _stream(stream) {} | ||
|
||
bool read (char c[], int n) override; | ||
- Imf::Int64 tellg () override; | ||
- void seekg (Imf::Int64 pos) override; | ||
+ virtual uint64_t tellg () override; | ||
+ virtual void seekg (uint64_t pos) override; | ||
void clear () override; | ||
|
||
private: |
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
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