Václav Slavík
1969499c6f
Silence Clang warning about numeric_limits<> specialization.
...
libstdc++ (which is used by Clang) defines numeric_limits<> as a struct
and Clang issues a warning about our specialization that uses 'class'.
As libstdc++ developers have no intention of fixing this, silence the
Clang warning by using 'struct' for it.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68472 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-07-31 13:25:33 +00:00
Vadim Zeitlin
715efa4e25
Allow passing wxLongLong values directly to wx pseudo-vararg functions.
...
Allow passing wxLongLong objects when a "%lld" format specifier (or
equivalent) is used just as we already do for wxString objects when "%s" is
used. This is more convenient and makes wxLongLong closes to the native type.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67760 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-05-17 22:12:39 +00:00
Vadim Zeitlin
4c24ca50d6
Fix wxULongLongNative::ToDouble() compilation with VC6.
...
The problem alluded to by the commit message of r40658 arose only in the DLL
build using VC6 so reintroduce the workaround for it removed by r67634 but
make it VC6-specific and, arguably even more importantly, also make it work
correctly for wxULongLongNative values greater than LONGLONG_MAX.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67643 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-04-28 16:16:16 +00:00
Vadim Zeitlin
ebbbd51bbc
Fix check in assert in wxULongLong::ToULong().
...
We can convert values up to ULONG_MAX to unsigned long losslessly, not up to
LONG_MAX.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67641 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-04-28 14:20:32 +00:00
Vadim Zeitlin
c92e136d9a
Don't specialize std::numeric_limits<> for wxLongLong when using VC6.
...
This doesn't work with VC6 anyhow as it doesn't provide numeric_limits<>
specialization for __int64 and results in many warnings C4663 as the standard
header itself uses obsolete template specialization syntax.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67640 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-04-28 14:20:29 +00:00
Vadim Zeitlin
77b239d4ba
Fix wxULongLong::ToDouble() for MSVC.
...
The conversion of wxULongLong to double was broken for MSVC by r40658 which
was supposed to correct some unspecified compilation problem but this code
seems to compile fine with at least recent versions of MSVC and, in any case,
correcting compilation only for the code to work incorrectly during run-time
doesn't look like a good idea.
This fixes current unit test failures in wxMSW.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67634 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-04-27 18:51:00 +00:00
Vadim Zeitlin
3dd4d0ec9e
Specialize std::numeric_limits<> for wxLongLong and wxULongLong.
...
numeric_limits<> should be specialized for number-like types to allow using
them in a similar way to the built-in types.
Closes #13162 .
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67610 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2011-04-26 22:56:50 +00:00
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
Václav Slavík
b5dbe15d0b
added WXDLLIMPEXP_FWD_FOO macros in addition to WXDLLIMPEXP_FOO for use with forward declarations (in preparation for GCC visibility support)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47254 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-07-09 10:09:52 +00:00
Vadim Zeitlin
05059b3a48
changed wxLongLongNative(hi, lo) ctor to take wxInt32, not long, as it was completely broken on LP64 architectures otherwise
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45256 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2007-04-05 15:00:24 +00:00
Julian Smart
95f090310c
Corrected VC++ compilo (not yet tested)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40658 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-18 15:27:30 +00:00
Vadim Zeitlin
d870a03054
added wxULongLong::ToDouble() (patch 1531597)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40581 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-08-13 00:44:44 +00:00
Vadim Zeitlin
62675f1e33
added operator=(unsigned int) overload (should help djgpp compilation)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38867 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-04-21 01:50:46 +00:00
Vadim Zeitlin
38b2e0de18
blind compilation fix for 64 bit systems after last commit
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37545 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-13 00:26:33 +00:00
Vadim Zeitlin
a4d2944e64
added assignment operators from int for disambiguation of expressions such as ll=0
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37500 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-11 17:30:26 +00:00
Vadim Zeitlin
216a72f3b9
added support for 64 bit ints in wx stream classes (patch 1203970)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37497 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2006-02-11 16:51:34 +00:00
Mart Raudsepp
90e572f1e5
Spelling fixes from Andreas Mohr (patch #1360064 )
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36199 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-11-19 01:07:56 +00:00
Vadim Zeitlin
84006e65e8
removed wxABI_VERSION checks
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35690 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-25 20:23:30 +00:00
Vadim Zeitlin
17a1ebd101
first round of Intel compiler warning fixes: down from a few thousands just to slightly more than 100
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35688 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-25 19:59:19 +00:00
Mart Raudsepp
8907154c1a
Nuke #pragma implementation/interface's
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35650 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-09-23 12:56:45 +00:00
Vadim Zeitlin
3e81caa51b
added wxABI_VERSION test around ToDouble()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35325 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-08-28 00:34:37 +00:00
Vadim Zeitlin
e7aaf2dedd
added wxLongLong::ToDouble()
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35323 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-08-28 00:03:30 +00:00
Włodzimierz Skiba
d0ee33f5c6
'[1219035] cleanup: miscellaneous' and minor source cleaning.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34643 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-06-13 12:19:33 +00:00
Michael Wetherell
43e8916ff3
Documentation fixes, patch 1179223 by Andreas Mohr
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33428 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-04-08 14:34:30 +00:00
Włodzimierz Skiba
6058220154
Native PalmOS wxLongLong. Introduction of wxULongLong_t due to 'unsigned' not working on internally typedefed wxLongLong_t (both unsigned wxLongLong_t and wxULongLong_t should work for other platforms). Improvements in wxDatePicker control on PalmOS.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32092 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-02-16 09:35:31 +00:00
Vadim Zeitlin
a353dc9852
more fixes to dllexport/import stuff for operator<<()s (still bug 1104372)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31450 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-18 13:15:20 +00:00
Vadim Zeitlin
7fcdf88f88
added WXDLLIMPEXP_BASE for operator<<() functions (blind fix for bug 1104372)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31445 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2005-01-18 12:30:19 +00:00
Włodzimierz Skiba
51496782d1
wxLongLong to wxString operators.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31153 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-12-27 18:57:21 +00:00
Włodzimierz Skiba
842215bbb7
Fixed old FIXME about unsigned result of sunstraction + a few changes to be able to compile at the same time wxLongLongNative and wxLongLongWx for unit tests about the same functionality (define wxLONGLONG_TEST_MODE for the build if you want to test it.
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30822 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-11-30 21:21:23 +00:00
Julian Smart
655719367a
Use old licence name
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 20:53:33 +00:00
Julian Smart
77ffb5937e
Name and version changes
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@27404 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2004-05-23 14:56:36 +00:00
Vadim Zeitlin
c0dd4372a3
wxLL is now in wx/defs.h together with (new) wxULL
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23821 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-22 17:10:30 +00:00
Vadim Zeitlin
8fb3747278
reorganized/improved fixed size int types definitions; in particular use __int64 for wxInt64 if available
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23817 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-09-22 13:47:55 +00:00
Václav Slavík
1202890513
added support for gcc precompiled headers
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22722 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-08-09 12:38:21 +00:00
Vadim Zeitlin
bddd7a8d89
renamed WXDLLEXPORT_BASE/CORE to WXDLLIMPEXP_BASE/CORE
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21570 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-02 01:59:24 +00:00
Vadim Zeitlin
886dd7d28e
fixes needed for separate DLL build to work
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21569 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-07-02 01:41:23 +00:00
Julian Smart
371a5b4e62
Removed erroneous copyright names and corrected licence spelling
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@19592 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-03-17 10:34:04 +00:00
Vadim Zeitlin
65f19af139
added iosfwrap.h (wrapper for <iosfwd>)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18932 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-01-26 00:12:12 +00:00
Vadim Zeitlin
b448f30e9c
Borland apparently uses for int64 in printf(), not
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18790 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-01-17 13:27:20 +00:00
Julian Smart
5283098e13
Applied patch [ 662321 ] Port of wxWindows to Wine
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18618 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2003-01-07 13:49:08 +00:00
Vadim Zeitlin
2b5f62a0b2
merged 2.4 branch into the trunk
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18040 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-12-04 14:11:26 +00:00
Gilles Depeyrot
af49c4b8a2
disable use of #pragma interface under Mac OS X
...
GNU compiler included with Mac OS X 10.2 (Jaguar) as well as August Developer
Tools update contain a bug concerning #pragma interface handling that can only
be worked around by not using them (and they are not necessary anyways)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16884 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-08-31 11:29:13 +00:00
Gilles Depeyrot
2e403d6dac
corrected post increment operators which must return value before increment
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15252 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2002-04-24 05:59:46 +00:00
Václav Slavík
9283436576
long long for DJGPP
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@13028 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-12-15 23:16:10 +00:00
Václav Slavík
d2ce649bec
compilation fixes (I wonder how did you people ever compile it...)
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12883 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-12-05 17:03:17 +00:00
Vadim Zeitlin
d7997e1ab1
really fixed wxLongLong
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12811 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-12-02 00:08:21 +00:00
Vadim Zeitlin
b01fb5c340
fixed VC++ compilation
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12810 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-12-01 23:53:03 +00:00
Vadim Zeitlin
0ba9f867fa
fixed compilation warning about signed/unsigned comparison
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12795 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-12-01 12:53:55 +00:00
Ron Lee
8e38fd1fb0
Added 2 extra macros to handle all the flavours of wxInt64 :(
...
Did a quick and dirty cut'n'paste to implement wxULongLong and provide
wxUint64 on platforms without a suitable native type.
Noted it's existance and inappropriate methods in the wxLongLong docs.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12790 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-12-01 03:43:08 +00:00
Julian Smart
c67d6888d4
Fixing wxMicroWindows compilation
...
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12745 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2001-11-28 18:22:16 +00:00