-// Minimal setup e.g. for compiling small utilities
-#define MINIMAL_WXWINDOWS_SETUP 0
-
-#if MINIMAL_WXWINDOWS_SETUP
-#undef USE_POSTSCRIPT
-# define USE_POSTSCRIPT 0
-#undef USE_PRINTING_ARCHITECTURE
-# define USE_PRINTING_ARCHITECTURE 0
-#undef USE_POSTSCRIPT_ARCHITECTURE_IN_MSW
-# define USE_POSTSCRIPT_ARCHITECTURE_IN_MSW 0
-#undef USE_METAFILE
-# define USE_METAFILE 0
-#undef USE_FORM
-# define USE_FORM 0
-#undef USE_SPLINES
-# define USE_SPLINES 0
-#undef USE_SCROLLBAR
-# define USE_SCROLLBAR 0
-#undef USE_COMBOBOX
-# define USE_COMBOBOX 0
-#undef USE_RADIOBUTTON
-# define USE_RADIOBUTTON 0
-#undef USE_XPM_IN_MSW
-# define USE_XPM_IN_MSW 0
-#undef USE_WX_RESOURCES
-# define USE_WX_RESOURCES 0
-#undef USE_DOC_VIEW_ARCHITECTURE
-# define USE_DOC_VIEW_ARCHITECTURE 0
-#undef USE_GNU_WXSTRING
-# define USE_GNU_WXSTRING 0
-#undef USE_ODBC
-# define USE_ODBC 0
-#undef USE_TIMEDATE
-# define USE_TIMEDATE 0
-#undef CTL3D
-# define CTL3D 0
-#undef USE_ITSY_BITSY
-# define USE_ITSY_BITSY 0
-#undef USE_IMAGE_LOADING_IN_MSW
-# define USE_IMAGE_LOADING_IN_MSW 0
-#undef USE_GAUGE
-# define USE_GAUGE 0
-#undef USE_RESOURCE_LOADING_IN_MSW
-# define USE_RESOURCE_LOADING_IN_MSW 0
-#undef USE_DRAG_AND_DROP
-# define USE_DRAG_AND_DROP 0
+// Salford C++ doesn't like some of the memory operator definitions
+#ifdef __SALFORDC__
+#undef wxUSE_MEMORY_TRACING
+#define wxUSE_MEMORY_TRACING 0
+
+#undef wxUSE_GLOBAL_MEMORY_OPERATORS
+#define wxUSE_GLOBAL_MEMORY_OPERATORS 0
+
+#undef wxUSE_DEBUG_NEW_ALWAYS
+#define wxUSE_DEBUG_NEW_ALWAYS 0
+
+#undef wxUSE_THREADS
+#define wxUSE_THREADS 0
+
+#undef wxUSE_DBWIN32
+#define wxUSE_DBWIN32 0
+
+#undef wxUSE_OWNER_DRAWN
+#define wxUSE_OWNER_DRAWN 0
+#endif
+
+#ifdef __TWIN32__
+
+#undef wxUSE_THREADS
+#define wxUSE_THREADS 0
+
+#undef wxUSE_DBWIN32
+#define wxUSE_DBWIN32 0
+
+#undef wxUSE_ODBC
+#define wxUSE_ODBC 0
+
+#endif
+
+#if defined(__WXMSW__) && !defined(__WIN32__)
+
+#undef wxUSE_THREADS
+#define wxUSE_THREADS 0
+