diff --git a/config_host/config_version.h.in b/config_host/config_version.h.in index 40c7dad24cd8..9a685827baea 100644 --- a/config_host/config_version.h.in +++ b/config_host/config_version.h.in @@ -15,9 +15,12 @@ Version settings #undef LIBO_VERSION_PATCH #undef LIBO_THIS_YEAR -#define LIBO_VERSION_DOTTED \ +#define LIBO_VERSION_DOTTED_2 \ LIBO_VERSION_STRINGIFY(LIBO_VERSION_MAJOR) "." \ - LIBO_VERSION_STRINGIFY(LIBO_VERSION_MINOR) "." \ + LIBO_VERSION_STRINGIFY(LIBO_VERSION_MINOR) + +#define LIBO_VERSION_DOTTED \ + LIBO_VERSION_DOTTED_2 "." \ LIBO_VERSION_STRINGIFY(LIBO_VERSION_MICRO) "." \ LIBO_VERSION_STRINGIFY(LIBO_VERSION_PATCH) diff --git a/cppuhelper/source/findsofficepath.c b/cppuhelper/source/findsofficepath.c index a46cfb88a1e7..e22e0a582ef1 100644 --- a/cppuhelper/source/findsofficepath.c +++ b/cppuhelper/source/findsofficepath.c @@ -22,6 +22,7 @@ #include #include +#include #include #if defined(_WIN32) @@ -136,7 +137,8 @@ static char* platformSpecific(void) const int SEPARATOR = '/'; const char* PATHSEPARATOR = ":"; const char* PATHVARNAME = "PATH"; - const char* APPENDIX = "/libreoffice"; + const char* APPENDIX = "/libreoffice" LIBO_VERSION_DOTTED_2; + // must match the product's UNIXFILENAME.* in sysui/productlist.mk char* path = NULL; char* str = NULL;