From: Patrick Albert Date: Fri, 9 Jul 1999 15:30:31 +0000 (+0000) Subject: Some minors changes, like adding empty lines at end of files, to be able to compile... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/cc985face55ed02c310860afefc8e6d656fb849d Some minors changes, like adding empty lines at end of files, to be able to compile with VC++1.52c. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2969 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/defs.h b/include/wx/defs.h index 565f80c520..c049542ebc 100644 --- a/include/wx/defs.h +++ b/include/wx/defs.h @@ -108,6 +108,14 @@ # pragma suppress 571 // Virtual function hiding #endif // __SALFORDC__ +#ifdef __VISUALC__ +#ifndef WIN32 +// VC1.5 does not have LPTSTR type +#define LPTSTR LPSTR +#define LPCTSTR LPCSTR +#endif +#endif + // Digital Unix C++ compiler only defines this symbol for .cxx and .hxx files, // so define it ourselves #ifdef __DECCXX diff --git a/include/wx/mstream.h b/include/wx/mstream.h index 1c3283e779..83ae0ba3b5 100644 --- a/include/wx/mstream.h +++ b/include/wx/mstream.h @@ -37,4 +37,5 @@ class wxMemoryOutputStream: public wxOutputStream { // wxUSE_STREAMS #endif - // _WX_WXMMSTREAM_H__ \ No newline at end of file + // _WX_WXMMSTREAM_H__ + diff --git a/include/wx/wfstream.h b/include/wx/wfstream.h index 52c23478a7..65313efd05 100644 --- a/include/wx/wfstream.h +++ b/include/wx/wfstream.h @@ -86,4 +86,5 @@ class wxFileStream: public wxFileInputStream, public wxFileOutputStream { // wxUSE_STREAMS && wxUSE_FILE #endif - // _WX_WXFSTREAM_H__ \ No newline at end of file + // _WX_WXFSTREAM_H__ + diff --git a/include/wx/zstream.h b/include/wx/zstream.h index 40396a1251..b1cb0f4760 100644 --- a/include/wx/zstream.h +++ b/include/wx/zstream.h @@ -55,4 +55,5 @@ class WXDLLEXPORT wxZlibOutputStream: public wxFilterOutputStream { // wxUSE_ZLIB && wxUSE_STREAMS #endif - // _WX_WXZSTREAM_H__ \ No newline at end of file + // _WX_WXZSTREAM_H__ + diff --git a/src/common/file.cpp b/src/common/file.cpp index 8f1f1deb76..55e153dee4 100644 --- a/src/common/file.cpp +++ b/src/common/file.cpp @@ -575,4 +575,5 @@ void wxTempFile::Discard() wxLogSysError(_("can't remove temporary file '%s'"), m_strTemp.c_str()); } -#endif \ No newline at end of file +#endif + diff --git a/src/common/wfstream.cpp b/src/common/wfstream.cpp index 5191307d4a..4bae72adc7 100644 --- a/src/common/wfstream.cpp +++ b/src/common/wfstream.cpp @@ -177,3 +177,4 @@ wxFileStream::wxFileStream(const wxString& fileName) #endif // wxUSE_STREAMS && wxUSE_FILE + diff --git a/src/common/zstream.cpp b/src/common/zstream.cpp index 1424f3b22b..361bb9ce82 100644 --- a/src/common/zstream.cpp +++ b/src/common/zstream.cpp @@ -30,7 +30,7 @@ #include "wx/utils.h" #include "wx/intl.h" #include "wx/log.h" -#include "zlib.h" +#include "..\zlib\zlib.h" #define ZSTREAM_BUFFER_SIZE 1024 diff --git a/src/msw/makefile.vc b/src/msw/makefile.vc index 7455eb2dab..226b187b75 100644 --- a/src/msw/makefile.vc +++ b/src/msw/makefile.vc @@ -168,6 +168,7 @@ COMMONOBJS = \ ..\common\$D\variant.obj \ ..\common\$D\dlgcmn.obj \ ..\common\$D\wincmn.obj \ + ..\common\$D\txtstrm.obj \ ..\common\$D\wxchar.obj MSWOBJS = \ @@ -250,7 +251,6 @@ MSWOBJS = \ ..\msw\$D\tbar95.obj \ ..\msw\$D\tbarmsw.obj \ ..\msw\$D\textctrl.obj \ - ..\msw\$D\txtstrm.obj \ ..\msw\$D\thread.obj \ ..\msw\$D\timer.obj \ ..\msw\$D\tooltip.obj \ diff --git a/src/msw/statline.cpp b/src/msw/statline.cpp index 2e55df4d40..5737b15039 100644 --- a/src/msw/statline.cpp +++ b/src/msw/statline.cpp @@ -55,12 +55,16 @@ bool wxStaticLine::Create( wxWindow *parent, wxSize sizeReal = AdjustSize(size); +#ifndef WIN32 +#define SS_SUNKEN 0 +#endif + m_hWnd = (WXHWND)::CreateWindow ( _T("STATIC"), "", WS_VISIBLE | WS_CHILD | - SS_GRAYRECT | SS_SUNKEN,// | SS_ETCHEDFRAME, + SS_GRAYRECT | SS_SUNKEN, // | SS_ETCHEDFRAME, pos.x, pos.y, sizeReal.x, sizeReal.y, GetWinHwnd(parent), (HMENU)m_windowId,