]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/dcprint.h
Prevent seg fault for older GTK+
[wxWidgets.git] / include / wx / dcprint.h
index 12792fd553639b7123390d90e8449f7f559d3a66..10936c4781c245ac62edac5471ea2b31b6f553d8 100644 (file)
@@ -1,6 +1,21 @@
+/////////////////////////////////////////////////////////////////////////////
+// Name:        wx/dcprint.h
+// Purpose:     wxPrinterDC base header
+// Author:      Julian Smart
+// Modified by:
+// Created:
+// Copyright:   (c) Julian Smart
+// RCS-ID:      $Id$
+// Licence:     wxWindows Licence
+/////////////////////////////////////////////////////////////////////////////
+
 #ifndef _WX_DCPRINT_H_BASE_
 #define _WX_DCPRINT_H_BASE_
 
 #ifndef _WX_DCPRINT_H_BASE_
 #define _WX_DCPRINT_H_BASE_
 
+#include "wx/defs.h"
+
+#if wxUSE_PRINTING_ARCHITECTURE
+
 #if defined(__WXPALMOS__)
 #include "wx/palmos/dcprint.h"
 #elif defined(__WXMSW__)
 #if defined(__WXPALMOS__)
 #include "wx/palmos/dcprint.h"
 #elif defined(__WXMSW__)
@@ -13,5 +28,6 @@
 #include "wx/mac/dcprint.h"
 #endif
 
 #include "wx/mac/dcprint.h"
 #endif
 
+#endif // wxUSE_PRINTING_ARCHITECTURE
 #endif
     // _WX_DCPRINT_H_BASE_
 #endif
     // _WX_DCPRINT_H_BASE_