check for wxHAS_HUGE_FILES
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29745 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
e2837d11f3
commit
9fd1fa4b1a
@ -1430,7 +1430,7 @@ size_t wxPyCBInputStream::OnSysWrite(const void *buffer, size_t bufsize) {
|
||||
|
||||
wxFileOffset wxPyCBInputStream::OnSysSeek(wxFileOffset off, wxSeekMode mode) {
|
||||
bool blocked = wxPyBeginBlockThreads();
|
||||
#if defined( __WINCE__) || defined(_LARGE_FILES) || defined(__HUGEFILES_SUPPORTED)
|
||||
#if defined( __WINCE__) || defined(_LARGE_FILES) || wxHAS_HUGE_FILES
|
||||
// wxFileOffset is a 64-bit value...
|
||||
PyObject* arglist = Py_BuildValue("(Li)", off, mode);
|
||||
#else
|
||||
@ -1451,7 +1451,7 @@ wxFileOffset wxPyCBInputStream::OnSysTell() const {
|
||||
Py_DECREF(arglist);
|
||||
wxFileOffset o = 0;
|
||||
if (result != NULL) {
|
||||
#if defined( __WINCE__) || defined(_LARGE_FILES) || defined(__HUGEFILES_SUPPORTED)
|
||||
#if defined( __WINCE__) || defined(_LARGE_FILES) || wxHAS_HUGE_FILES
|
||||
if (PyLong_Check(result))
|
||||
o = PyLong_AsLongLong(result);
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user