#ifdef __WXMSW__
#include <windows.h>
-#ifndef __WIN32__
+#if !defined(__WIN32__)
#include <print.h>
#include <commdlg.h>
#endif
+
+#if defined(__WATCOMC__) || defined(__SC__) || defined(__SALFORDC__)
+#include <windowsx.h>
+#include <commdlg.h>
+#endif
+
#endif
#if !USE_SHARED_LIBRARY