From 0de6087164b88b8cfb587cd379bd6732e6ba9e42 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Mon, 23 Jan 2017 23:01:32 +0100 Subject: [PATCH] Declare the lazperf compress/uncompress functions These functions used from pc_patch_lazperf.c were not declared, causing warning at compile time. --- lib/lazperf_adapter.h | 25 +++++++++++++++++++++++++ lib/lazperf_adapter.hpp | 6 +----- lib/pc_patch_lazperf.c | 1 + 3 files changed, 27 insertions(+), 5 deletions(-) create mode 100644 lib/lazperf_adapter.h diff --git a/lib/lazperf_adapter.h b/lib/lazperf_adapter.h new file mode 100644 index 0000000..368c000 --- /dev/null +++ b/lib/lazperf_adapter.h @@ -0,0 +1,25 @@ +/*********************************************************************** +* lazperf_adapter.h +* +* PgSQL Pointcloud is free and open source software provided +* by the Government of Canada +* +* Copyright (c) 2013 Natural Resources Canada +* Copyright (c) 2013 OpenGeo +* Copyright (c) 2017 Oslandia +* +***********************************************************************/ + +#ifndef _LAZPERF_ADAPTER_H +#define _LAZPERF_ADAPTER_H + +#ifdef __cplusplus +extern "C" { +#endif +size_t lazperf_compress_from_uncompressed(const PCPATCH_UNCOMPRESSED *pa, uint8_t **compressed); +size_t lazperf_uncompress_from_compressed(const PCPATCH_LAZPERF *pa, uint8_t **decompressed); +#ifdef __cplusplus +} +#endif + +#endif /* _LAZPERF_ADAPTER_H */ diff --git a/lib/lazperf_adapter.hpp b/lib/lazperf_adapter.hpp index 6a4c689..3a0a9bf 100644 --- a/lib/lazperf_adapter.hpp +++ b/lib/lazperf_adapter.hpp @@ -23,11 +23,7 @@ /********************************************************************** * C API */ -extern "C" { - size_t lazperf_compress_from_uncompressed(const PCPATCH_UNCOMPRESSED *pa, uint8_t **compressed); - - size_t lazperf_uncompress_from_compressed(const PCPATCH_LAZPERF *pa, uint8_t **decompressed); -} +#include "lazperf_adapter.h" /********************************************************************** * INTERNAL CPP diff --git a/lib/pc_patch_lazperf.c b/lib/pc_patch_lazperf.c index 075d720..1bd3629 100644 --- a/lib/pc_patch_lazperf.c +++ b/lib/pc_patch_lazperf.c @@ -9,6 +9,7 @@ ***********************************************************************/ #include "pc_api_internal.h" +#include "lazperf_adapter.h" #include void