]> git.saurik.com Git - wxWidgets.git/commitdiff
Some BC++ issues
authorJulian Smart <julian@anthemion.co.uk>
Tue, 28 Dec 1999 15:21:06 +0000 (15:21 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 28 Dec 1999 15:21:06 +0000 (15:21 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5129 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/datetime.cpp
src/common/longlong.cpp
src/html/m_fonts.cpp

index a35c8a7bedba4a7733b97e4805aa04b32e65b32e..0c392aa5abbe3e4428db8990aa1cdb4719e14f54 100644 (file)
@@ -2295,7 +2295,11 @@ const wxChar *wxDateTime::ParseRfc822Date(const wxChar* date)
 
     // the spec was correct
     Set(day, mon, year, hour, min, sec);
+#ifndef __BORLANDC__ // The following line doesn't compile with BC++
     MakeTimezone(60*(wxDateTime_t)offset);
+#else
+    wxMessageBox("ParseRfc822Date doesn't with BC++ yet, sorry.");
+#endif
 
     return p;
 }
index 0792e84902c663f7fa8b289710a72c5de500f01f..c25ce2ea4ee4aab4d61664f08579140f17aa7d5d 100644 (file)
@@ -26,7 +26,6 @@
 #endif
 
 #if wxUSE_LONGLONG
-
 #include "wx/longlong.h"
 
 #include <memory.h>     // for memset()
index 51168e0026fe5158fad7f2318ada243c346bf881..5b5fec3a9384dc8282c4a7811109539a2efefacd 100644 (file)
@@ -55,7 +55,7 @@ TAG_HANDLER_BEGIN(FONT, "FONT")
 
         if (tag.HasParam(wxT("SIZE"))) {
            long tmp = 0;
-            wxChar c = tag.GetParam(wxT("SIZE"))[0];
+            wxChar c = tag.GetParam(wxT("SIZE"))[(unsigned int) 0];
             if (tag.ScanParam(wxT("SIZE"), wxT("%li"), &tmp) == 1) {
                 if (c == '+' || c == '-')
                     m_WParser -> SetFontSize(oldsize+tmp);