Skip to content

Commit

Permalink
Merge pull request #9171 from rouault/fix_wasm_build
Browse files Browse the repository at this point in the history
PDS: fix compilation with Emscripten version 3.1.7
  • Loading branch information
rouault authored Feb 1, 2024
2 parents e9d1242 + 572ec8d commit 82bb396
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 16 deletions.
18 changes: 2 additions & 16 deletions frmts/pds/pds4dataset.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,28 +104,14 @@ class PDS4TableBaseLayer CPL_NON_FINAL : public OGRLayer
virtual void RefreshFileAreaObservational(CPLXMLNode *psFAO) = 0;
};

/************************************************************************/
/* ==================================================================== */
/* PDS4EditableSynchronizer */
/* ==================================================================== */
/************************************************************************/

template <class T>
class PDS4EditableSynchronizer final : public IOGREditableLayerSynchronizer
{
public:
PDS4EditableSynchronizer() = default;

OGRErr EditableSyncToDisk(OGRLayer *poEditableLayer,
OGRLayer **ppoDecoratedLayer) override;
};

/************************************************************************/
/* ==================================================================== */
/* PDS4FixedWidthTable */
/* ==================================================================== */
/************************************************************************/

template <class T> class PDS4EditableSynchronizer;

class PDS4FixedWidthTable CPL_NON_FINAL : public PDS4TableBaseLayer
{
friend class PDS4EditableSynchronizer<PDS4FixedWidthTable>;
Expand Down
10 changes: 10 additions & 0 deletions frmts/pds/pds4vector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2574,6 +2574,16 @@ bool PDS4DelimitedTable::InitializeNewLayer(const OGRSpatialReference *poSRS,
/* ==================================================================== */
/************************************************************************/

template <class T>
class PDS4EditableSynchronizer final : public IOGREditableLayerSynchronizer
{
public:
PDS4EditableSynchronizer() = default;

OGRErr EditableSyncToDisk(OGRLayer *poEditableLayer,
OGRLayer **ppoDecoratedLayer) override;
};

template <class T>
OGRErr
PDS4EditableSynchronizer<T>::EditableSyncToDisk(OGRLayer *poEditableLayer,
Expand Down

0 comments on commit 82bb396

Please sign in to comment.