DWORD is not defined in UNIX based systems. int should be fine
Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 1 file). Show all
Unified · Split
| @@ -93,7 +93,7 @@ ScriptEngine::ScriptEngine(const QUrl& scriptURL, · 92 unmodified lines | ||
| 93 | 93 | QUrl url(scriptURL); |
| 94 | 94 | |
| 95 | 95 | // if the scheme length is one or lower, maybe they typed in a file, let's try |
| 96 | − const DWORD WINDOWS_DRIVE_LETTER_SIZE = 1; | |
| 96 | + const int WINDOWS_DRIVE_LETTER_SIZE = 1; | |
| 97 | 97 | if (url.scheme().size() <= WINDOWS_DRIVE_LETTER_SIZE) { |
| 98 | 98 | url = QUrl::fromLocalFile(scriptURLString); |
| 99 | 99 | } |