I'm sick of all those #ifdefs in settings.c, and in any case plink
[u/mdw/putty] / windefs.c
diff --git a/windefs.c b/windefs.c
new file mode 100644 (file)
index 0000000..88e9fe6
--- /dev/null
+++ b/windefs.c
@@ -0,0 +1,25 @@
+/*
+ * windefs.c: default settings that are specific to Windows.
+ */
+
+#include <windows.h>
+#include <commctrl.h>
+
+#include "winstuff.h"
+#include "puttymem.h"
+
+#include "putty.h"
+
+char *platform_default_s(char *name)
+{
+    if (!strcmp(name, "Font"))
+       return "Courier New";
+    return NULL;
+}
+
+int platform_default_i(char *name, int def)
+{
+    if (!strcmp(name, "FontCharSet"))
+       return ANSI_CHARSET;
+    return def;
+}