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
This commit is contained in:
Vadim Zeitlin 2016-06-17 14:46:13 +02:00
parent 96ef6ea293
commit 4b98cd4012

View File

@ -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 <libsecret/secret.h>
#include "wx/gtk/private/error.h"