From 0a768b390e849033681d7d6c7cd98c2b40a99954 Mon Sep 17 00:00:00 2001 From: Bas Couwenberg Date: Mon, 13 Jun 2022 21:50:18 +0200 Subject: [PATCH] Disable C++ symbol name mangling. (#10) Fixes: #9 --- grass.cpp | 2 ++ ogrgrassdriver.cpp | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/grass.cpp b/grass.cpp index 9e5204d..f0d8a65 100644 --- a/grass.cpp +++ b/grass.cpp @@ -53,6 +53,8 @@ extern "C" { char *GPJ_grass_to_wkt( const struct Key_Value *, const struct Key_Value *, int, int ); + +void GDALRegister_GRASS(); } #define GRASS_MAX_COLORS 100000 // what is the right value diff --git a/ogrgrassdriver.cpp b/ogrgrassdriver.cpp index 8ebaecc..3f50e14 100644 --- a/ogrgrassdriver.cpp +++ b/ogrgrassdriver.cpp @@ -30,6 +30,10 @@ #include "cpl_conv.h" #include "cpl_string.h" +extern "C" { + void RegisterOGRGRASS(); +} + CPL_CVSID("$Id$") /************************************************************************/