From 4b98cd4012b5f97c36a326120353731ee18e98a9 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Fri, 17 Jun 2016 14:46:13 +0200 Subject: [PATCH] Fix compilation with libsecret 0.16 from Ubuntu 14.04 LTS This version of the library requires predefining a special symbol to obtain API declarations we need. See https://github.com/wxWidgets/wxWidgets/pull/290 --- src/unix/secretstore.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/unix/secretstore.cpp b/src/unix/secretstore.cpp index 0aba702c10..77c324fe14 100644 --- a/src/unix/secretstore.cpp +++ b/src/unix/secretstore.cpp @@ -27,6 +27,9 @@ #include "wx/secretstore.h" #include "wx/private/secretstore.h" +// Older versions of libsecret, such as 0.16 from Ubuntu 14.04 LTS, require +// predefining this symbol in order to have access to the APIs we use below. +#define SECRET_API_SUBJECT_TO_CHANGE #include #include "wx/gtk/private/error.h"