chiark / gitweb /
MinGW windres doesn't like an empty resource file, so invent a resource to
authorJacob Nevins <jacobn@chiark.greenend.org.uk>
Wed, 28 Feb 2007 21:49:48 +0000 (21:49 +0000)
committerJacob Nevins <jacobn@chiark.greenend.org.uk>
Wed, 28 Feb 2007 21:49:48 +0000 (21:49 +0000)
keep it happy. (Hopefully this hack will be temporary.)

[originally from svn r7346]

noicon.rc

index 26a70db7c6225a2bb1c291c155fb0a5bb481a939..1de605d605ecadab92fec114e957de0aaab2c320 100644 (file)
--- a/noicon.rc
+++ b/noicon.rc
@@ -1,3 +1,11 @@
 /* Puzzle resource file without an icon, used in the absence of icons/foo.rc */
 
 #include "puzzles.rc2"
+
+/* XXX this probably isn't the right test, but it'll do. */
+#ifdef MINGW32_FIX
+/* XXX The MinGW toolchain (specifically, windres) doesn't like a resource
+ * file with no resources. Give it a dummy one.
+ * This can go if/when VERSIONINFO resources are added. */
+200 RCDATA { 0 }
+#endif