overte/libraries/shared/src/TBBHelpers.h
Dale Glass 5327ffeec4 Fix build under Qt 5.14 and later.
Solves "redefinition of ‘struct std::hash<QString>’",
"redefinition of ‘struct std::hash<QByteArray>'", and
a build failure in TouchscreenVirtualPadDevice.h.
2020-08-26 00:01:29 +02:00

32 lines
774 B
C

//
// Created by Bradley Austin Davis on 2017/06/06
// Copyright 2013-2017 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#pragma once
#ifndef hifi_TBBHelpers_h
#define hifi_TBBHelpers_h
#ifdef _WIN32
#pragma warning( push )
#pragma warning( disable : 4334 )
#endif
#if !defined(Q_MOC_RUN)
// Work around https://bugreports.qt.io/browse/QTBUG-80990
#include <tbb/concurrent_queue.h>
#include <tbb/concurrent_unordered_map.h>
#include <tbb/concurrent_unordered_set.h>
#include <tbb/concurrent_vector.h>
#include <tbb/parallel_for.h>
#include <tbb/blocked_range2d.h>
#endif
#ifdef _WIN32
#pragma warning( pop )
#endif
#endif // hifi_TBBHelpers_h