Improve clang fixes

This commit is contained in:
ts-korhonen
2021-12-20 21:54:25 +02:00
parent 75d4e923ae
commit a9ecd17f5c
3 changed files with 3 additions and 4 deletions

View File

@@ -107,9 +107,8 @@ add_library(ui STATIC
../qt_resources.qrc ../qt_resources.qrc
) )
if(NOT MINGW) if(WIN32 AND NOT MINGW)
target_sources(plat PRIVATE ../win/win_opendir.c) target_sources(plat PRIVATE ../win/win_opendir.c)
target_sources(plat PRIVATE ../nvr.c)
endif() endif()
if (APPLE) if (APPLE)

View File

@@ -2,7 +2,7 @@
* C functionality for Qt platform, where the C equivalent is not easily * C functionality for Qt platform, where the C equivalent is not easily
* implemented in Qt * implemented in Qt
*/ */
#ifdef __MINGW32__ #if !defined(_WIN32) && !defined(__clang__)
#include <strings.h> #include <strings.h>
#endif #endif
#include <stdint.h> #include <stdint.h>

View File

@@ -10,6 +10,6 @@
"openal-soft", "openal-soft",
"sdl2", "sdl2",
"rtmidi", "rtmidi",
"qt5" "qt5-base"
] ]
} }