]> granicus.if.org Git - nethack/commitdiff
fix Qt6 broken build
authornhmall <nhmall@nethack.org>
Wed, 27 Apr 2022 11:35:31 +0000 (07:35 -0400)
committernhmall <nhmall@nethack.org>
Wed, 27 Apr 2022 11:35:31 +0000 (07:35 -0400)
win/Qt/qt_bind.cpp

index bde7d403620a9be2d604fa2db0c81e7890ec62dd..4b1950a217f7feb0c039a87571b10723acf9dcce 100644 (file)
@@ -1100,7 +1100,9 @@ struct window_procs Qt_procs = {
 #ifndef WIN32
 extern "C" void play_usersound(const char *, int);
 
+#if QT_VERSION < 0x060000
 QSoundEffect *effect = NULL;
+#endif
 
 /* called from core, sounds.c */
 void