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:
Robin Dunn 2004-10-09 01:26:43 +00:00
parent e2837d11f3
commit 9fd1fa4b1a

View File

@ -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