mirror of
https://github.com/OPM/ResInsight.git
synced 2024-12-29 10:21:54 -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 <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
|
#pragma once
|
||||||
|
|
||||||
|
#undef signals
|
||||||
#include <arrow/array/array_primitive.h>
|
#include <arrow/array/array_primitive.h>
|
||||||
|
#define signals Q_SIGNALS
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
@ -18,10 +18,12 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#undef signals
|
||||||
#include <arrow/csv/api.h>
|
#include <arrow/csv/api.h>
|
||||||
#include <arrow/io/api.h>
|
#include <arrow/io/api.h>
|
||||||
#include <arrow/scalar.h>
|
#include <arrow/scalar.h>
|
||||||
#include <parquet/arrow/reader.h>
|
#include <parquet/arrow/reader.h>
|
||||||
|
#define signals Q_SIGNALS
|
||||||
|
|
||||||
#include <QByteArray>
|
#include <QByteArray>
|
||||||
|
|
||||||
|
@ -27,11 +27,13 @@
|
|||||||
|
|
||||||
#include "RifArrowTools.h"
|
#include "RifArrowTools.h"
|
||||||
|
|
||||||
|
#undef signals
|
||||||
#include <arrow/array/array_primitive.h>
|
#include <arrow/array/array_primitive.h>
|
||||||
#include <arrow/csv/api.h>
|
#include <arrow/csv/api.h>
|
||||||
#include <arrow/io/api.h>
|
#include <arrow/io/api.h>
|
||||||
#include <arrow/scalar.h>
|
#include <arrow/scalar.h>
|
||||||
#include <parquet/arrow/reader.h>
|
#include <parquet/arrow/reader.h>
|
||||||
|
#define signals Q_SIGNALS
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------------------
|
||||||
///
|
///
|
||||||
|
@ -18,12 +18,14 @@
|
|||||||
|
|
||||||
#include "RifOsduWellPathReader.h"
|
#include "RifOsduWellPathReader.h"
|
||||||
|
|
||||||
|
#undef signals
|
||||||
#include <arrow/array/array_primitive.h>
|
#include <arrow/array/array_primitive.h>
|
||||||
#include <arrow/csv/api.h>
|
#include <arrow/csv/api.h>
|
||||||
#include <arrow/io/api.h>
|
#include <arrow/io/api.h>
|
||||||
#include <arrow/scalar.h>
|
#include <arrow/scalar.h>
|
||||||
#include <arrow/util/cancel.h>
|
#include <arrow/util/cancel.h>
|
||||||
#include <parquet/arrow/reader.h>
|
#include <parquet/arrow/reader.h>
|
||||||
|
#define signals Q_SIGNALS
|
||||||
|
|
||||||
#include "RiaLogging.h"
|
#include "RiaLogging.h"
|
||||||
#include "RiaTextStringTools.h"
|
#include "RiaTextStringTools.h"
|
||||||
|
@ -2,10 +2,12 @@
|
|||||||
|
|
||||||
#include "RiaTestDataDirectory.h"
|
#include "RiaTestDataDirectory.h"
|
||||||
|
|
||||||
|
#undef signals
|
||||||
#include <arrow/csv/api.h>
|
#include <arrow/csv/api.h>
|
||||||
#include <arrow/io/api.h>
|
#include <arrow/io/api.h>
|
||||||
#include <arrow/scalar.h>
|
#include <arrow/scalar.h>
|
||||||
#include <parquet/arrow/reader.h>
|
#include <parquet/arrow/reader.h>
|
||||||
|
#define signals Q_SIGNALS
|
||||||
|
|
||||||
#include <QDir>
|
#include <QDir>
|
||||||
#include <QString>
|
#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 "cvfObject.h"
|
||||||
#include "cvfVector3.h"
|
#include "cvfVector3.h"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user