#undef max
#include <QtGui/QtGui>
-#include <QStringList>
+#include <QtCore/QStringList>
#if QT_VERSION >= 0x050000
#include <QtWidgets/QtWidgets>
#include <QtMultimedia/QSound>
complain = must_exist;
} else {
while (dlb_fgets(buf, BUFSZ, f)) {
- if ((cr = index(buf, '\n')) != 0) *cr = 0;
+ if ((cr = strchr(buf, '\n')) != 0) *cr = 0;
#ifdef MSDOS
- if ((cr = index(buf, '\r')) != 0) *cr = 0;
+ if ((cr = strchr(buf, '\r')) != 0) *cr = 0;
#endif
window->PutStr(ATR_NONE, tabexpand(buf));
}
message = QString("%1 [%2] ").arg(question, choicebuf);
if (def) message += QString("(%1) ").arg(QChar(def));
// escape maps to 'q' or 'n' or default, in that order
- yn_esc_map = (index(choices, 'q') ? 'q' :
- (index(choices, 'n') ? 'n' : def));
+ yn_esc_map = (strchr(choices, 'q') ? 'q' :
+ (strchr(choices, 'n') ? 'n' : def));
} else {
message = question;
}
char ch=NetHackQtBind::qt_nhgetch();
if (ch=='\033') {
result=yn_esc_map;
- } else if (choices && !index(choices,ch)) {
+ } else if (choices && !strchr(choices,ch)) {
if (def && (ch==' ' || ch=='\r' || ch=='\n')) {
result=def;
} else {
genl_can_suspend_yes,
};
+#ifndef WIN32
extern "C" void play_usersound(const char* filename, int volume)
{
#ifdef USER_SOUNDS
#endif
#endif
}
+#endif