Commit Graph

183 Commits

Author SHA1 Message Date
Vadim Zeitlin
9a83f86094 Globally replace _T() with wxT().
Standardize on using a single macro across all wxWidgets sources and solve the name clash with Sun CC standard headers (see #10660).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@61508 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-07-23 20:30:22 +00:00
Vadim Zeitlin
68fe70ea1f define HAVE_LARGEFILE_SUPPORT in setup.h when large files support is available and test for it in wx/filefn.h (closes #10844); document that wx/filefn.h must be included before testing for wxHAS_LARGE_(F)FILES
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60823 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-05-30 17:15:36 +00:00
Francesco Montorsi
0253bbbabc add a few comments about wxDEPRECATED stuff to ease upgrade path (closes #10628)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60563 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-05-09 12:41:31 +00:00
Vadim Zeitlin
d5e71e81ec more order in wxCRT_filefunctions: define A and W versions, just as for everything else and simply map suffix-less versions to the appropriate ones
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60355 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-25 15:53:45 +00:00
Vadim Zeitlin
4bf3e3a702 build fixes for Borland in wxUSE_UNICODE_MSLU and wxHAS_HUGE_FILES cases; only define one of wxMSLU__wstat and wxMSLU__wstati64; also define wxStructStat as 64 bit version of struct stat if needed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60345 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-04-25 13:52:58 +00:00
Vadim Zeitlin
181dd701fa implement deprecated wxStripExtension() in terms of new wxFileName::StripExtension() (closes #10634)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59868 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-03-26 15:55:01 +00:00
Vadim Zeitlin
d3b9f782ef don't use annoying and unneeded in C++ casts of NULL to "T *" in all other files neither
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58227 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-19 13:55:27 +00:00
Vadim Zeitlin
220ea2b928 fix deprecation warnings when building wx with MSVC
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@58036 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-12 11:55:44 +00:00
Francesco Montorsi
48598c661a fix deprecation warnings when building filefn.cpp
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57976 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-10 16:04:36 +00:00
Francesco Montorsi
47d281e6b7 deprecate wxDos2UnixFilename, wxUnix2DosFilename, wxStripExtension, wxGetTempFileName, wxExpandPath, wxContractPath, wxRealPath, wxCopyAbsolutePath, wxSplitPath and provide deprecation description in the docs (for the documented functions) or directly in the header (for undocumented functions)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57872 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2009-01-07 01:29:54 +00:00
Vadim Zeitlin
98225d0279 test for __MINGW64__ in the huge files support section
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55369 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-08-30 12:52:47 +00:00
Václav Slavík
2587df2c82 reverted Robert's premature removal of deprecated 2.6 functions in r54490
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54497 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-05 19:06:06 +00:00
Robert Roebling
961d941c0d Remove 2_6 compatibility code
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54490 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-07-05 10:58:38 +00:00
Stefan Neis
3656eefc89 Compilation fixes for mingw-w64.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53878 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-31 12:44:40 +00:00
Vadim Zeitlin
8aa6162938 blind fix for Borland ANSI build: define wxStructStat specially for this compiler
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53851 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-05-30 18:59:55 +00:00
Vadim Zeitlin
9b4da62701 PalmOS compilation fixes (wx-trunk-out.diff part of patch 1894861)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52226 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-03-02 00:43:06 +00:00
Vadim Zeitlin
1b96afaa92 don't define HAVE_FSYNC if it's already defined (as it can happen when using Cygwin with configure)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51770 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2008-02-13 22:39:32 +00:00
Vadim Zeitlin
f172cb8200 removed support for Salford compiler (which was almost certainly broken anyhow) (patch 1861133)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50960 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-31 10:05:00 +00:00
Vadim Zeitlin
e2fc40b478 PalmOS 6 compilation fixes (patch 1849757)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50704 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-12-15 01:25:56 +00:00
Stefan Neis
1044b90c1b Applied patch #1821711 (workaround for Watcom inconsistency wrt Posix functions)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@49508 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-10-28 18:52:46 +00:00
Julian Smart
2b2883a5eb Applied [ 1767537 ] [wxOS2]Watcom build - filefn
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48325 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-08-22 10:41:32 +00:00
Vadim Zeitlin
d6f2a8911e many compilation fixes for WinCE using VC8 (it now build, although still doesn't work)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47749 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-27 16:34:24 +00:00
Václav Slavík
52de37c78f 1. made CRT wrappers definitions indepenent of wxUSE_UNICODE: both ANSI and Unicode variants are now defined
2. split wxcrt.h into wxcrtbase.h with lowlevel compiler-specific definitions and wxcrt.h with ANSI- and Unicode-compatible wx wrappers


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46390 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-10 17:14:14 +00:00
Václav Slavík
aec1621e4f marked WinCE implementations of wxOpen etc. functions as dllexported
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@46342 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-06-06 15:56:44 +00:00
Václav Slavík
e960c20e38 changes wxDirExists() to accept wxString instead of wxChar*, so that it can be used with any string literals
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44596 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-03-02 12:44:52 +00:00
Michael Wetherell
62f04b576f Change wxMkDir/wxRmDir to _wmkdir/_wrmdir for Borland unicode builds to match
recent change of wxMBFILES.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43964 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-12-13 12:32:08 +00:00
Vadim Zeitlin
e8f33d9e11 better fix for scope resolution operator and Borland (bug 1592939): don't use it for struct stat but do use it for functions
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43699 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-27 22:04:41 +00:00
Vadim Zeitlin
d28e0b069f don't use scope resolution operator for Borland in wxPOSIX_IDENT() (part of the fix for bug 1592939)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43697 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-27 21:38:31 +00:00
Michael Wetherell
311b04034e Workaround for BCC 5.5/5.5.1 _wopen bug.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43248 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-11-09 22:45:19 +00:00
Chris Elliott
f9e5b1c786 fix borland header difference
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42665 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-29 20:44:32 +00:00
Julian Smart
5c746f384e Borland fix.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42622 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-29 16:48:41 +00:00
Vadim Zeitlin
f49ad976f4 use wxPOSIX_IDENT() for consistent handling of underscores in POSIX functions names in Windows compilers standard headers; this should hopefully fix the compilation for older Borland versions without breaking it for anything else; also define wxFsync() for Borland and DMC as they seem to have _commit() too (subject to version checks...), only Watcom seems to lack it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42615 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-29 13:55:52 +00:00
Vadim Zeitlin
c26d982b4b removed hard TAB
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42545 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-28 00:20:47 +00:00
Robert Roebling
34e2d9439b [ 1585270 ] Further fixes to wxPathList
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42538 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-27 17:59:32 +00:00
Michael Wetherell
a9002825f2 Yes VC5 support large files.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42516 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-27 11:33:10 +00:00
Vadim Zeitlin
76c3651293 don't use _INTEGRAL_MAX_BITS to decide whether a (Windows) compiler supports huge files, this fails with Borland, so test for all compilers explicitly
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42515 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-27 11:27:38 +00:00
Vadim Zeitlin
6dad7fff04 move wxMSLU_xxx redefinitions of xxx() Windows functions to wx/msw/wrapwin.h as we have to define them after including <windows.h> and not before; also moved the rest of the wxMSLU redefinitions to wx/filefn.h where they're used as it doesn't make sense to keep only them in wx/msw/mslu.h
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42462 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-26 19:06:51 +00:00
Vadim Zeitlin
4876ba0b23 declare wxMSLU_xxx functions in the headers which define macros expanding to them
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42396 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-25 11:27:24 +00:00
Vadim Zeitlin
1ad688c96f test that _INTEGRAL_MAX_BITS is defined before comparing with it; changed wxHAS_HUGE_FILES to be either defined or undef'd for consistency with the other wxHAS_XXXs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42338 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-24 12:08:05 +00:00
Michael Wetherell
82b99cf952 Rename WX[F]FILE_LARGEFILE to wxHAS_LARGE_[F]FILES.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42305 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-23 21:46:13 +00:00
Vadim Zeitlin
dedcebb9df try to simplify the web of ifdefs; add Borland to the list of Windows compilers (partially addresses bug 1173702)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42300 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-23 20:39:09 +00:00
Michael Wetherell
3d3c6c4518 Add WXFILE_LARGEFILE/wxFFILE_LARGEFILE to indicate whether large files are
supported by wxFile and wxFFile. Add wxO_BINARY.


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42275 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-23 12:51:00 +00:00
Vadim Zeitlin
194b226768 also define wxLstat for non-Unix platforms
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42201 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-21 14:45:40 +00:00
Vadim Zeitlin
ee8d76ec2e also define wxLstat in ANSI build
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42200 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-21 14:42:17 +00:00
Vadim Zeitlin
56614e51f9 added wxLstat() (one of patches from bug 1052385)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42199 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-21 14:41:20 +00:00
Robert Roebling
3ff07edb0b [ 1560785 ] wxFileName::IsReadable/Writable/Executable
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41638 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-10-05 17:28:31 +00:00
Václav Slavík
2c5e5cbdb4 wxFileModificationTime() needs wxDateTime, put it inside wxUSE_DATETIME
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40394 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-31 12:03:22 +00:00
Vadim Zeitlin
6885562629 don't make wxPathList dtor virtual, this is unneeded and results in gcc warning
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40332 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-25 18:48:52 +00:00
Vadim Zeitlin
8daf3c3664 wxPathList cleanup by Francesco (patch 1521481)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40298 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-07-25 00:16:55 +00:00
Vadim Zeitlin
57e988b8ef added overwrite parameter to wxRenameFile (patch 1467041)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38760 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-16 21:14:00 +00:00