remove some gcc4.8/windows special code as minimum gcc version to build rt is 4.9

This commit is contained in:
heckflosse
2017-06-21 01:09:16 +02:00
parent 34bdc9e0eb
commit 41d3179f2c
5 changed files with 2 additions and 15 deletions

View File

@@ -205,11 +205,7 @@ void FileBrowserEntry::updateImage (rtengine::IImage8* img, double scale, rtengi
cropParams
};
#if __GNUC__ == 4 && __GNUC_MINOR__ == 8 && defined( WIN32 ) && defined(__x86_64__)
const gint priority = G_PRIORITY_DEFAULT;
#else
const gint priority = G_PRIORITY_LOW;
#endif
const auto func = [](gpointer data) -> gboolean {
tiupdate* const params = static_cast<tiupdate*>(data);

View File

@@ -68,11 +68,8 @@ public:
inactive_waiting_(false)
{
int threadCount = 1;
#if !(__GNUC__ == 4 && __GNUC_MINOR__ == 8 && defined( WIN32 ) && defined(__x86_64__))
// See Issue 2431 for explanation
#ifdef _OPENMP
threadCount = omp_get_num_procs();
#endif
#endif
threadPool_ = new Glib::ThreadPool(threadCount, 0);