mirror of
https://github.com/OPM/ResInsight.git
synced 2024-12-28 01:41:42 -06:00
Fix compiler issue when importing arrow
The arrow library has a function parameter called signals that causes trouble when compiled using Qt. Add undef signals to avoid this issue.
This commit is contained in:
parent
e0b84ae36a
commit
58b3f0b928
@ -22,12 +22,6 @@
|
||||
|
||||
#include <vector>
|
||||
|
||||
// #include <arrow/array/array_primitive.h>
|
||||
// #include <arrow/csv/api.h>
|
||||
// #include <arrow/io/api.h>
|
||||
// #include <arrow/scalar.h>
|
||||
// #include <parquet/arrow/reader.h>
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
@ -18,7 +18,9 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#undef signals
|
||||
#include <arrow/array/array_primitive.h>
|
||||
#define signals Q_SIGNALS
|
||||
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
@ -18,10 +18,12 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#undef signals
|
||||
#include <arrow/csv/api.h>
|
||||
#include <arrow/io/api.h>
|
||||
#include <arrow/scalar.h>
|
||||
#include <parquet/arrow/reader.h>
|
||||
#define signals Q_SIGNALS
|
||||
|
||||
#include <QByteArray>
|
||||
|
||||
|
@ -27,11 +27,13 @@
|
||||
|
||||
#include "RifArrowTools.h"
|
||||
|
||||
#undef signals
|
||||
#include <arrow/array/array_primitive.h>
|
||||
#include <arrow/csv/api.h>
|
||||
#include <arrow/io/api.h>
|
||||
#include <arrow/scalar.h>
|
||||
#include <parquet/arrow/reader.h>
|
||||
#define signals Q_SIGNALS
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
|
@ -18,12 +18,14 @@
|
||||
|
||||
#include "RifOsduWellPathReader.h"
|
||||
|
||||
#undef signals
|
||||
#include <arrow/array/array_primitive.h>
|
||||
#include <arrow/csv/api.h>
|
||||
#include <arrow/io/api.h>
|
||||
#include <arrow/scalar.h>
|
||||
#include <arrow/util/cancel.h>
|
||||
#include <parquet/arrow/reader.h>
|
||||
#define signals Q_SIGNALS
|
||||
|
||||
#include "RiaLogging.h"
|
||||
#include "RiaTextStringTools.h"
|
||||
|
@ -2,10 +2,12 @@
|
||||
|
||||
#include "RiaTestDataDirectory.h"
|
||||
|
||||
#undef signals
|
||||
#include <arrow/csv/api.h>
|
||||
#include <arrow/io/api.h>
|
||||
#include <arrow/scalar.h>
|
||||
#include <parquet/arrow/reader.h>
|
||||
#define signals Q_SIGNALS
|
||||
|
||||
#include <QDir>
|
||||
#include <QString>
|
||||
|
@ -16,11 +16,6 @@
|
||||
//
|
||||
/////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
// NOTE: This file must be included before any other Qt header files, as the keyword 'signals' is used as a parameter name in
|
||||
// RegisterCancellingSignalHandler(const std::vector<int>& signals);
|
||||
// Qt has special treatment of 'signals', and causes compiler issues using PCH
|
||||
#include <arrow/util/cancel.h>
|
||||
|
||||
#include "cvfObject.h"
|
||||
#include "cvfVector3.h"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user