mirror of
https://gitlab.gnome.org/GNOME/libsecret.git
synced 2025-01-03 02:28:53 +00:00
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:
parent
c00283ebd0
commit
2b4adfb9f4
@ -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__
|
||||
|
Loading…
Reference in New Issue
Block a user