]> granicus.if.org Git - nethack/commitdiff
Ignore Qt specific config options silently
authorPasi Kallinen <paxed@alt.org>
Mon, 16 Oct 2017 09:45:19 +0000 (12:45 +0300)
committerPasi Kallinen <paxed@alt.org>
Mon, 16 Oct 2017 09:47:07 +0000 (12:47 +0300)
If the binary wasn't compiled with Qt, don't complain
about Qt specific config options.

src/files.c

index 8abacce665664aadffcd8ad88f37d76bb06e05a4..4c46d23d07b3efceb2699e74533187f72e0fa6ce 100644 (file)
@@ -2674,24 +2674,29 @@ char *origbuf;
     } else if (match_varname(buf, "SOUND", 5)) {
         add_sound_mapping(bufp);
 #endif
-#ifdef QT_GRAPHICS
-        /* These should move to wc_ options */
     } else if (match_varname(buf, "QT_TILEWIDTH", 12)) {
+#ifdef QT_GRAPHICS
         extern char *qt_tilewidth;
 
         if (qt_tilewidth == NULL)
             qt_tilewidth = dupstr(bufp);
+#endif
     } else if (match_varname(buf, "QT_TILEHEIGHT", 13)) {
+#ifdef QT_GRAPHICS
         extern char *qt_tileheight;
 
         if (qt_tileheight == NULL)
             qt_tileheight = dupstr(bufp);
+#endif
     } else if (match_varname(buf, "QT_FONTSIZE", 11)) {
+#ifdef QT_GRAPHICS
         extern char *qt_fontsize;
 
         if (qt_fontsize == NULL)
             qt_fontsize = dupstr(bufp);
+#endif
     } else if (match_varname(buf, "QT_COMPACT", 10)) {
+#ifdef QT_GRAPHICS
         extern int qt_compact_mode;
 
         qt_compact_mode = atoi(bufp);