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:
@@ -1430,7 +1430,7 @@ size_t wxPyCBInputStream::OnSysWrite(const void *buffer, size_t bufsize) {
|
|||||||
|
|
||||||
wxFileOffset wxPyCBInputStream::OnSysSeek(wxFileOffset off, wxSeekMode mode) {
|
wxFileOffset wxPyCBInputStream::OnSysSeek(wxFileOffset off, wxSeekMode mode) {
|
||||||
bool blocked = wxPyBeginBlockThreads();
|
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...
|
// wxFileOffset is a 64-bit value...
|
||||||
PyObject* arglist = Py_BuildValue("(Li)", off, mode);
|
PyObject* arglist = Py_BuildValue("(Li)", off, mode);
|
||||||
#else
|
#else
|
||||||
@@ -1451,7 +1451,7 @@ wxFileOffset wxPyCBInputStream::OnSysTell() const {
|
|||||||
Py_DECREF(arglist);
|
Py_DECREF(arglist);
|
||||||
wxFileOffset o = 0;
|
wxFileOffset o = 0;
|
||||||
if (result != NULL) {
|
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))
|
if (PyLong_Check(result))
|
||||||
o = PyLong_AsLongLong(result);
|
o = PyLong_AsLongLong(result);
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user