diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2022-06-09 14:53:01 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2022-07-12 22:47:16 +0200 |
commit | 4a4a0b6d1fcb7062874d40c93260877eb7d83f22 (patch) | |
tree | ff4558b458b643f76d9beeed6fd8e0523254ce0f /src/corelib/kernel/qsharedmemory_unix.cpp | |
parent | dbb3fdafac09b5d85bb79a777f2d67e9a1218f18 (diff) |
Use QT_CONFIG feature checks for sharedmemory and systemsemaphores
Change-Id: I86d0e4c5f279486f5fd6ef086dd913e813d0186d
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/corelib/kernel/qsharedmemory_unix.cpp')
-rw-r--r-- | src/corelib/kernel/qsharedmemory_unix.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/corelib/kernel/qsharedmemory_unix.cpp b/src/corelib/kernel/qsharedmemory_unix.cpp index 211111062f..2c071f3735 100644 --- a/src/corelib/kernel/qsharedmemory_unix.cpp +++ b/src/corelib/kernel/qsharedmemory_unix.cpp @@ -10,7 +10,7 @@ #include <errno.h> -#ifndef QT_NO_SHAREDMEMORY +#if QT_CONFIG(sharedmemory) #include <sys/types.h> #ifndef QT_POSIX_IPC #include <sys/ipc.h> @@ -21,11 +21,11 @@ #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> -#endif //QT_NO_SHAREDMEMORY +#endif // QT_CONFIG(sharedmemory) #include "private/qcore_unix_p.h" -#ifndef QT_NO_SHAREDMEMORY +#if QT_CONFIG(sharedmemory) QT_BEGIN_NAMESPACE QSharedMemoryPrivate::QSharedMemoryPrivate() : @@ -33,7 +33,7 @@ QSharedMemoryPrivate::QSharedMemoryPrivate() : QObjectPrivate(), #endif memory(nullptr), size(0), error(QSharedMemory::NoError), -#ifndef QT_NO_SYSTEMSEMAPHORE +#if QT_CONFIG(systemsemaphore) systemSemaphore(QString()), lockedByMe(false), #endif #ifndef QT_POSIX_IPC @@ -77,4 +77,4 @@ void QSharedMemoryPrivate::setErrorString(QLatin1StringView function) QT_END_NAMESPACE -#endif // QT_NO_SHAREDMEMORY +#endif // QT_CONFIG(sharedmemory) |