Pull out the common compiler-specific workarounds and so on from individual
[u/mdw/putty] / windows / rcstuff.h
diff --git a/windows/rcstuff.h b/windows/rcstuff.h
new file mode 100644 (file)
index 0000000..5b2fc3b
--- /dev/null
@@ -0,0 +1,37 @@
+/*
+ * Miscellaneous stuff to include in all .rc files.
+ */
+
+#ifndef PUTTY_RCSTUFF_H
+#define PUTTY_RCSTUFF_H
+
+#ifdef __LCC__
+#include <win.h>
+#else
+
+/* Some compilers, like Borland, don't have winresrc.h */
+#ifndef NO_WINRESRC_H
+#ifndef MSVC4
+#include <winresrc.h>
+#else
+#include <winres.h>
+#endif
+#endif
+
+#endif /* end #ifdef __LCC__ */
+
+/* Some systems don't define this, so I do it myself if necessary */
+#ifndef TCS_MULTILINE
+#define TCS_MULTILINE 0x0200
+#endif
+
+/* Likewise */
+#ifndef RT_MANIFEST
+#define RT_MANIFEST 24
+#endif
+
+#ifdef MINGW32_FIX
+#define EDITTEXT     EDITTEXT "",
+#endif
+
+#endif /* PUTTY_RCSTUFF_H */