Fix -Wunknown-pragmas triggered by secret-version.h

In file included from /usr/include/libsecret-1/libsecret/secret.h:33,
                 from ../lib/sync/../ephy-sync-utils.h:24,
                 from ../lib/sync/ephy-history-manager.c:25:
/usr/include/libsecret-1/libsecret/secret-version.h:19: error: ignoring #pragma __once__  [-Werror=unknown-pragmas]
 #pragma __once__

It should be #pragma once, not #pragma __once__.

But let's follow the other public headers here instead.
This commit is contained in:
Michael Catanzaro 2019-06-13 15:00:20 +00:00
parent c00283ebd0
commit 2b4adfb9f4

View File

@ -16,7 +16,8 @@
#error "Only <libsecret/secret.h> can be included directly."
#endif
#pragma __once__
#ifndef __SECRET_VERSION_H__
#define __SECRET_VERSION_H__
/**
* SECTION:secret-version
@ -63,3 +64,5 @@
(SECRET_MAJOR_VERSION == (major) && \
SECRET_MINOR_VERSION == (minor) && \
SECRET_MICRO_VERSION >= (micro)))
#endif __SECRET_VERSION_H__