Changes related to stream includes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@818 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -36,8 +36,16 @@ class WXDLLEXPORT wxCommandProcessor;
|
|||||||
class WXDLLEXPORT wxFileHistory;
|
class WXDLLEXPORT wxFileHistory;
|
||||||
class WXDLLEXPORT wxConfigBase;
|
class WXDLLEXPORT wxConfigBase;
|
||||||
|
|
||||||
class WXDLLIMPORT ostream;
|
#if wxUSE_IOSTREAMH
|
||||||
class WXDLLIMPORT istream;
|
# include <istream.h>
|
||||||
|
# include <ostream.h>
|
||||||
|
#else
|
||||||
|
# include <istream>
|
||||||
|
# include <ostream>
|
||||||
|
# ifdef _MSC_VER
|
||||||
|
using namespace std;
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
// Document manager flags
|
// Document manager flags
|
||||||
#define wxDOC_SDI 1
|
#define wxDOC_SDI 1
|
||||||
|
@@ -186,6 +186,8 @@ const wxEventType wxEVT_COMMAND_TAB_SEL_CHANGING = wxEVT_FIRST + 801;
|
|||||||
const wxEventType wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED = wxEVT_FIRST + 802;
|
const wxEventType wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED = wxEVT_FIRST + 802;
|
||||||
const wxEventType wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING = wxEVT_FIRST + 803;
|
const wxEventType wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING = wxEVT_FIRST + 803;
|
||||||
|
|
||||||
|
const wxEventType wxEVT_USER_FIRST = wxEVT_FIRST + 2000;
|
||||||
|
|
||||||
// Compatibility
|
// Compatibility
|
||||||
|
|
||||||
#if WXWIN_COMPATIBILITY
|
#if WXWIN_COMPATIBILITY
|
||||||
|
@@ -52,10 +52,18 @@ typedef unsigned long wxLogLevel;
|
|||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// forward declarations
|
// forward declarations
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
class wxTextCtrl;
|
class WXDLLEXPORT wxTextCtrl;
|
||||||
class wxLogFrame;
|
class WXDLLEXPORT wxLogFrame;
|
||||||
class wxFrame;
|
class WXDLLEXPORT wxFrame;
|
||||||
class ostream;
|
|
||||||
|
#if wxUSE_IOSTREAMH
|
||||||
|
# include <ostream.h>
|
||||||
|
#else
|
||||||
|
# include <ostream>
|
||||||
|
# ifdef _MSC_VER
|
||||||
|
using namespace std;
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// derive from this class to redirect (or suppress, or ...) log messages
|
// derive from this class to redirect (or suppress, or ...) log messages
|
||||||
@@ -166,7 +174,6 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
// log everything to an "ostream", cerr by default
|
// log everything to an "ostream", cerr by default
|
||||||
class ostream;
|
|
||||||
class WXDLLEXPORT wxLogStream : public wxLog
|
class WXDLLEXPORT wxLogStream : public wxLog
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@@ -357,9 +364,6 @@ DECLARE_LOG_FUNCTION2(SysError, long lErrCode);
|
|||||||
// parts of the program only)
|
// parts of the program only)
|
||||||
WXDLLEXPORT_DATA(extern bool) g_bVerbose;
|
WXDLLEXPORT_DATA(extern bool) g_bVerbose;
|
||||||
|
|
||||||
// fwd decl to avoid including iostream.h here
|
|
||||||
class ostream;
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
// get error code/error message from system in a portable way
|
// get error code/error message from system in a portable way
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
@@ -28,9 +28,12 @@
|
|||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
#if wxUSE_IOSTREAMH
|
#if wxUSE_IOSTREAMH
|
||||||
#include <iostream.h>
|
# include <ostream.h>
|
||||||
#else
|
#else
|
||||||
#include <iostream>
|
# include <ostream>
|
||||||
|
# ifdef _MSC_VER
|
||||||
|
using namespace std;
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "wx/string.h"
|
#include "wx/string.h"
|
||||||
|
@@ -27,11 +27,11 @@
|
|||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
|
||||||
// fwd declarations
|
// fwd declarations
|
||||||
class wxImageList;
|
class WXDLLEXPORT wxImageList;
|
||||||
class wxWindow;
|
class WXDLLEXPORT wxWindow;
|
||||||
|
|
||||||
// array of notebook pages
|
// array of notebook pages
|
||||||
typedef wxWindow wxNotebookPage; // so far, any window can be a page
|
typedef wxWindow WXDLLEXPORT wxNotebookPage; // so far, any window can be a page
|
||||||
WX_DEFINE_ARRAY(wxNotebookPage *, wxArrayPages);
|
WX_DEFINE_ARRAY(wxNotebookPage *, wxArrayPages);
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------
|
||||||
|
@@ -30,13 +30,21 @@ class WXDLLEXPORT wxObject;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
class WXDLLEXPORT wxClassInfo;
|
class WXDLLEXPORT wxClassInfo;
|
||||||
class WXDLLIMPORT ostream;
|
|
||||||
class WXDLLEXPORT wxInputStream;
|
class WXDLLEXPORT wxInputStream;
|
||||||
class WXDLLEXPORT wxObjectInputStream;
|
class WXDLLEXPORT wxObjectInputStream;
|
||||||
class WXDLLEXPORT wxObjectOutputStream;
|
class WXDLLEXPORT wxObjectOutputStream;
|
||||||
class WXDLLEXPORT wxHashTable;
|
class WXDLLEXPORT wxHashTable;
|
||||||
class WXDLLEXPORT wxObject_Serialize;
|
class WXDLLEXPORT wxObject_Serialize;
|
||||||
|
|
||||||
|
#if wxUSE_IOSTREAMH
|
||||||
|
# include <ostream.h>
|
||||||
|
#else
|
||||||
|
# include <ostream>
|
||||||
|
# ifdef _MSC_VER
|
||||||
|
using namespace std;
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Dynamic object system declarations
|
* Dynamic object system declarations
|
||||||
*/
|
*/
|
||||||
|
@@ -34,7 +34,15 @@ public:
|
|||||||
void OnExit();
|
void OnExit();
|
||||||
};
|
};
|
||||||
|
|
||||||
class WXDLLIMPORT ofstream;
|
#if wxUSE_IOSTREAMH
|
||||||
|
# include <fstream.h>
|
||||||
|
#else
|
||||||
|
# include <fstream>
|
||||||
|
# ifdef _MSC_VER
|
||||||
|
using namespace std;
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
class WXDLLEXPORT wxPostScriptDC: public wxDC
|
class WXDLLEXPORT wxPostScriptDC: public wxDC
|
||||||
{
|
{
|
||||||
DECLARE_DYNAMIC_CLASS(wxPostScriptDC)
|
DECLARE_DYNAMIC_CLASS(wxPostScriptDC)
|
||||||
|
@@ -919,7 +919,17 @@ inline bool operator>=(const char * s1, const wxString& s2) { return s2.Cmp(s1)
|
|||||||
#ifdef STD_STRING_COMPATIBILITY
|
#ifdef STD_STRING_COMPATIBILITY
|
||||||
|
|
||||||
// fwd decl
|
// fwd decl
|
||||||
class WXDLLEXPORT istream;
|
// Known not to work with wxUSE_IOSTREAMH set to 0, so
|
||||||
|
// replacing with includes (on advice of ungod@pasdex.com.au)
|
||||||
|
// class WXDLLEXPORT istream;
|
||||||
|
#if wxUSE_IOSTREAMH
|
||||||
|
#include <istream.h>
|
||||||
|
#else
|
||||||
|
#include <istream>
|
||||||
|
# ifdef _MSC_VER
|
||||||
|
using namespace std;
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
istream& WXDLLEXPORT operator>>(istream& is, wxString& str);
|
istream& WXDLLEXPORT operator>>(istream& is, wxString& str);
|
||||||
|
|
||||||
|
@@ -27,6 +27,9 @@
|
|||||||
#include <iostream.h>
|
#include <iostream.h>
|
||||||
#else
|
#else
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
# ifdef _MSC_VER
|
||||||
|
using namespace std;
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __X__
|
#ifdef __X__
|
||||||
|
@@ -25,6 +25,9 @@
|
|||||||
#include <iostream.h>
|
#include <iostream.h>
|
||||||
#else
|
#else
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
# ifdef _MSC_VER
|
||||||
|
using namespace std;
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@@ -25,6 +25,9 @@
|
|||||||
#include <iostream.h>
|
#include <iostream.h>
|
||||||
#else
|
#else
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
# ifdef _MSC_VER
|
||||||
|
using namespace std;
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "wx/list.h"
|
#include "wx/list.h"
|
||||||
|
@@ -53,12 +53,15 @@
|
|||||||
|
|
||||||
#if wxUSE_IOSTREAMH
|
#if wxUSE_IOSTREAMH
|
||||||
#include <iostream.h>
|
#include <iostream.h>
|
||||||
|
#include <fstream.h>
|
||||||
#else
|
#else
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
#include <fstream>
|
||||||
|
# ifdef _MSC_VER
|
||||||
|
using namespace std;
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "fstream.h"
|
|
||||||
|
|
||||||
#if !USE_SHARED_LIBRARY
|
#if !USE_SHARED_LIBRARY
|
||||||
IMPLEMENT_ABSTRACT_CLASS(wxDocument, wxEvtHandler)
|
IMPLEMENT_ABSTRACT_CLASS(wxDocument, wxEvtHandler)
|
||||||
IMPLEMENT_ABSTRACT_CLASS(wxView, wxEvtHandler)
|
IMPLEMENT_ABSTRACT_CLASS(wxView, wxEvtHandler)
|
||||||
|
@@ -39,10 +39,14 @@
|
|||||||
|
|
||||||
#if wxUSE_IOSTREAMH
|
#if wxUSE_IOSTREAMH
|
||||||
#include <iostream.h>
|
#include <iostream.h>
|
||||||
|
#include <fstream.h>
|
||||||
#else
|
#else
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
#include <fstream>
|
||||||
|
# ifdef _MSC_VER
|
||||||
|
using namespace std;
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
#include <fstream.h>
|
|
||||||
|
|
||||||
#if !defined(__WATCOMC__) && !defined(__VMS__)
|
#if !defined(__WATCOMC__) && !defined(__VMS__)
|
||||||
#include <memory.h>
|
#include <memory.h>
|
||||||
|
@@ -37,7 +37,14 @@
|
|||||||
|
|
||||||
#if WXDEBUG || wxUSE_DEBUG_CONTEXT
|
#if WXDEBUG || wxUSE_DEBUG_CONTEXT
|
||||||
// for wxObject::Dump
|
// for wxObject::Dump
|
||||||
#include <iostream.h>
|
#if wxUSE_IOSTREAMH
|
||||||
|
# include <iostream.h>
|
||||||
|
#else
|
||||||
|
# include <iostream>
|
||||||
|
# ifdef _MSC_VER
|
||||||
|
using namespace std;
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !USE_SHARED_LIBRARY
|
#if !USE_SHARED_LIBRARY
|
||||||
|
@@ -50,11 +50,15 @@
|
|||||||
|
|
||||||
#if wxUSE_IOSTREAMH
|
#if wxUSE_IOSTREAMH
|
||||||
#include <iostream.h>
|
#include <iostream.h>
|
||||||
|
#include <fstream.h>
|
||||||
#else
|
#else
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
#include <fstream>
|
||||||
|
# ifdef _MSC_VER
|
||||||
|
using namespace std;
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <fstream.h>
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@@ -96,6 +96,18 @@ extern const char *g_szNul = &g_strEmpty.dummy;
|
|||||||
#define NAMESPACE
|
#define NAMESPACE
|
||||||
#endif //Visual C++
|
#endif //Visual C++
|
||||||
|
|
||||||
|
#if wxUSE_IOSTREAMH
|
||||||
|
#include <iostream.h>
|
||||||
|
#define NAMESPACE
|
||||||
|
#else
|
||||||
|
#include <iostream>
|
||||||
|
# ifdef _MSC_VER
|
||||||
|
using namespace std;
|
||||||
|
# endif
|
||||||
|
#define NAMESPACE std::
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
NAMESPACE istream& operator>>(NAMESPACE istream& is, wxString& WXUNUSED(str))
|
NAMESPACE istream& operator>>(NAMESPACE istream& is, wxString& WXUNUSED(str))
|
||||||
{
|
{
|
||||||
#if 0
|
#if 0
|
||||||
|
@@ -36,11 +36,15 @@ seconds since January 1, 1901, GMT.
|
|||||||
|
|
||||||
#if wxUSE_IOSTREAMH
|
#if wxUSE_IOSTREAMH
|
||||||
#include <iostream.h>
|
#include <iostream.h>
|
||||||
|
#include <iomanip.h>
|
||||||
#else
|
#else
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
#include <iomanip>
|
||||||
|
# ifdef _MSC_VER
|
||||||
|
using namespace std;
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <iomanip.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#if !USE_SHARED_LIBRARY
|
#if !USE_SHARED_LIBRARY
|
||||||
|
@@ -32,11 +32,15 @@
|
|||||||
|
|
||||||
#if wxUSE_IOSTREAMH
|
#if wxUSE_IOSTREAMH
|
||||||
#include <iostream.h>
|
#include <iostream.h>
|
||||||
|
#include <fstream.h>
|
||||||
#else
|
#else
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
#include <fstream>
|
||||||
|
# ifdef _MSC_VER
|
||||||
|
using namespace std;
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <fstream.h>
|
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@@ -20,7 +20,14 @@
|
|||||||
#pragma hdrstop
|
#pragma hdrstop
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if wxUSE_IOSTREAMH
|
||||||
#include <fstream.h>
|
#include <fstream.h>
|
||||||
|
#else
|
||||||
|
#include <fstream>
|
||||||
|
# ifdef _MSC_VER
|
||||||
|
using namespace std;
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "wx/string.h"
|
#include "wx/string.h"
|
||||||
#include "wx/variant.h"
|
#include "wx/variant.h"
|
||||||
|
@@ -20,7 +20,15 @@
|
|||||||
#pragma hdrstop
|
#pragma hdrstop
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if wxUSE_IOSTREAMH
|
||||||
#include <fstream.h>
|
#include <fstream.h>
|
||||||
|
#else
|
||||||
|
#include <fstream>
|
||||||
|
# ifdef _MSC_VER
|
||||||
|
using namespace std;
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
@@ -33,7 +33,6 @@
|
|||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <fstream.h>
|
|
||||||
|
|
||||||
#if wxUSE_COMMON_DIALOGS
|
#if wxUSE_COMMON_DIALOGS
|
||||||
#include <commdlg.h>
|
#include <commdlg.h>
|
||||||
|
@@ -26,7 +26,6 @@
|
|||||||
|
|
||||||
#include "wx/dcprint.h"
|
#include "wx/dcprint.h"
|
||||||
#include "math.h"
|
#include "math.h"
|
||||||
#include "fstream.h"
|
|
||||||
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
|
||||||
|
@@ -24,7 +24,16 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#if wxUSE_IOSTREAMH
|
||||||
#include <fstream.h>
|
#include <fstream.h>
|
||||||
|
#else
|
||||||
|
#include <fstream>
|
||||||
|
# ifdef _MSC_VER
|
||||||
|
using namespace std;
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <wx/msw/pngread.h>
|
#include <wx/msw/pngread.h>
|
||||||
#include <wx/msw/dibutils.h>
|
#include <wx/msw/dibutils.h>
|
||||||
|
@@ -34,7 +34,15 @@
|
|||||||
|
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "fstream.h"
|
|
||||||
|
#if wxUSE_IOSTREAMH
|
||||||
|
#include <fstream.h>
|
||||||
|
#else
|
||||||
|
#include <fstream>
|
||||||
|
# ifdef _MSC_VER
|
||||||
|
using namespace std;
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
@@ -508,7 +516,8 @@ bool wxTextCtrl::LoadFile(const wxString& file)
|
|||||||
|
|
||||||
Clear();
|
Clear();
|
||||||
|
|
||||||
ifstream input(WXSTRINGCAST file, ios::nocreate | ios::in);
|
// ifstream input(WXSTRINGCAST file, ios::nocreate | ios::in);
|
||||||
|
ifstream input(WXSTRINGCAST file, ios::in);
|
||||||
|
|
||||||
if (!input.bad())
|
if (!input.bad())
|
||||||
{
|
{
|
||||||
|
@@ -29,7 +29,7 @@ CPU=i386
|
|||||||
OBJSUFF=obj
|
OBJSUFF=obj
|
||||||
SRCSUFF=cpp
|
SRCSUFF=cpp
|
||||||
|
|
||||||
WINFLAGS=-c -W3 -Dtry=__try -Dexcept=__except -Dleave=__leave -Dfinally=__finally -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -D_X86_=1 -DWIN32 -D__WIN32__ $(WINVERSION)
|
WINFLAGS=-c -W3 -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -D_X86_=1 -DWIN32 -D__WIN32__ $(WINVERSION)
|
||||||
#WINLINKFLAGS=/NODEFAULTLIB /INCREMENTAL:NO /NOLOGO -align:0x1000 -machine:$(CPU) -subsystem:windows,$(APPVER)
|
#WINLINKFLAGS=/NODEFAULTLIB /INCREMENTAL:NO /NOLOGO -align:0x1000 -machine:$(CPU) -subsystem:windows,$(APPVER)
|
||||||
WINLINKFLAGS=/INCREMENTAL:NO /NOLOGO -align:0x1000 -machine:$(CPU) -subsystem:windows,$(APPVER)
|
WINLINKFLAGS=/INCREMENTAL:NO /NOLOGO -align:0x1000 -machine:$(CPU) -subsystem:windows,$(APPVER)
|
||||||
#WINLIBS=kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib libc.lib oldnames.lib\
|
#WINLIBS=kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib libc.lib oldnames.lib\
|
||||||
@@ -169,7 +169,3 @@ LINKFLAGS=$(LINK_DEBUG_FLAGS) -machine:i386 -subsystem:windows,$(APPVER) -dll #
|
|||||||
|
|
||||||
DUMMYOBJ=$(WXDIR)\src\msw\$(DUMMY).obj
|
DUMMYOBJ=$(WXDIR)\src\msw\$(DUMMY).obj
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@@ -31,14 +31,14 @@ PRECOMP=/YuWX.H
|
|||||||
|
|
||||||
!if "$(FINAL)" == "0"
|
!if "$(FINAL)" == "0"
|
||||||
OPT = /Od
|
OPT = /Od
|
||||||
CPPFLAGS= /W4 /Zi /MDd /GX $(ZOPTION) $(OPT) /Dwx_msw $(INC) # $(PRECOMP) /Fp$(WXDIR)\src\msw\wx.pch
|
CPPFLAGS= /W4 /Zi /MD /GX $(ZOPTION) $(OPT) /Dwx_msw $(INC) # $(PRECOMP) /Fp$(WXDIR)\src\msw\wx.pch
|
||||||
CFLAGS= /W4 /Zi /MDd /GX /Od /Dwx_msw $(INC)
|
CFLAGS= /W4 /Zi /MD /GX /Od /Dwx_msw $(INC)
|
||||||
LINKFLAGS=/NOD /CO /ONERROR:NOEXE
|
LINKFLAGS=/NOD /CO /ONERROR:NOEXE
|
||||||
!else
|
!else
|
||||||
# /Ox for real FINAL version
|
# /Ox for real FINAL version
|
||||||
OPT = /O2
|
OPT = /O2
|
||||||
CPPFLAGS= /W4 /MDd /GX /Dwx_msw $(INC) # $(PRECOMP) /Fp$(WXDIR)\src\msw\wx.pch
|
CPPFLAGS= /W4 /MD /GX /Dwx_msw $(INC) # $(PRECOMP) /Fp$(WXDIR)\src\msw\wx.pch
|
||||||
CFLAGS= /W4 /MDd /GX /Dwx_msw $(INC)
|
CFLAGS= /W4 /MD /GX /Dwx_msw $(INC)
|
||||||
LINKFLAGS=/NOD /ONERROR:NOEXE
|
LINKFLAGS=/NOD /ONERROR:NOEXE
|
||||||
!endif
|
!endif
|
||||||
|
|
||||||
@@ -59,6 +59,8 @@ $(OBJECTS)
|
|||||||
cl -DWIN32 $(OPT) $(CFLAGS) /c $*.c
|
cl -DWIN32 $(OPT) $(CFLAGS) /c $*.c
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
erase *.obj *.exe *.lib
|
erase *.obj
|
||||||
|
erase *.exe
|
||||||
|
erase *.lib
|
||||||
|
|
||||||
cleanall: clean
|
cleanall: clean
|
||||||
|
@@ -10,7 +10,7 @@
|
|||||||
# See zconf.h for details about the memory requirements.
|
# See zconf.h for details about the memory requirements.
|
||||||
|
|
||||||
# ------------- Turbo C++, Borland C++ -------------
|
# ------------- Turbo C++, Borland C++ -------------
|
||||||
CFLAGS=-O2 /MDd /GX
|
CFLAGS=-O2 /MD /GX
|
||||||
CC=cl
|
CC=cl
|
||||||
LD=cl
|
LD=cl
|
||||||
LIB=tlib
|
LIB=tlib
|
||||||
|
@@ -43,7 +43,7 @@ $(PROGRAM).dll: $(DUMMYOBJ) $(OBJECTS) $(WXDIR)\lib\wx.lib $(PLUGINLIB) $(PROGRA
|
|||||||
-out:$(PROGRAM).dll \
|
-out:$(PROGRAM).dll \
|
||||||
-def:$(PROGRAM).def \
|
-def:$(PROGRAM).def \
|
||||||
$(DUMMYOBJ) $(OBJECTS) $(PROGRAM).res $(WXDIR)\lib\wx.lib $(PLUGINLIB) \
|
$(DUMMYOBJ) $(OBJECTS) $(PROGRAM).res $(WXDIR)\lib\wx.lib $(PLUGINLIB) \
|
||||||
$(guilibsdll) msvcrt.lib shell32.lib comctl32.lib ctl3d32.lib
|
$(guilibsdll) shell32.lib comctl32.lib ctl3d32.lib
|
||||||
|
|
||||||
gui.obj: gui.$(SRCSUFF) gui.h $(DUMMYOBJ)
|
gui.obj: gui.$(SRCSUFF) gui.h $(DUMMYOBJ)
|
||||||
$(cc) @<<
|
$(cc) @<<
|
||||||
|
@@ -43,7 +43,7 @@ $(PROGRAM).dll: $(DUMMYOBJ) $(OBJECTS) $(WXDIR)\lib\wx.lib $(PLUGINLIB) $(PROGRA
|
|||||||
-out:$(PROGRAM).dll \
|
-out:$(PROGRAM).dll \
|
||||||
-def:$(PROGRAM).def \
|
-def:$(PROGRAM).def \
|
||||||
$(DUMMYOBJ) $(OBJECTS) $(PROGRAM).res $(WXDIR)\lib\wx.lib $(PLUGINLIB) \
|
$(DUMMYOBJ) $(OBJECTS) $(PROGRAM).res $(WXDIR)\lib\wx.lib $(PLUGINLIB) \
|
||||||
$(guilibsdll) msvcrt.lib shell32.lib comctl32.lib ctl3d32.lib ole32.lib
|
$(guilibsdll) lib shell32.lib comctl32.lib ctl3d32.lib ole32.lib
|
||||||
|
|
||||||
simple.obj: simple.$(SRCSUFF) $(DUMMYOBJ)
|
simple.obj: simple.$(SRCSUFF) $(DUMMYOBJ)
|
||||||
$(cc) @<<
|
$(cc) @<<
|
||||||
|
Reference in New Issue
Block a user