#pragma hdrstop
#endif
-// #define __GOOD_COMPILER__
-
#include "wx/defs.h"
+#ifdef __WXMSW__
+#define __GOOD_COMPILER__
+#endif
+
#ifndef WX_PRECOMP
#include "wx/utils.h"
#include "wx/dc.h"
#include <stdlib.h>
#include <string.h>
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
#include <windows.h>
#include <commdlg.h>
LONG APIENTRY _EXPORT wxAbortProc(HDC hPr, int Code);
#endif
- // End __WINDOWS__
+ // End __WXMSW__
#if !USE_SHARED_LIBRARY
IMPLEMENT_CLASS(wxPrinterBase, wxObject)
* Printout class
*/
-wxPrintout::wxPrintout(char *title)
+wxPrintout::wxPrintout(const char *title)
{
- printoutTitle = title ? copystring(title) : (char*)NULL;
+ printoutTitle = title ? copystring(title) : NULL;
printoutDC = NULL;
pageWidthMM = 0;
pageHeightMM = 0;
SetSize(0, 0, 400, 40);
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
int fontSize = 9;
#else
int fontSize = 10;
// int w, h;
// controlBar->GetSize(&w, &h);
int h;
-#ifdef __WINDOWS__
+#ifdef __WXMSW__
h = 40;
#else
h = 60;