Skip to content

Commit 9511b27

Browse files
author
Moser Peter
committed
EVINCE BACKPORTS: libdocument: Add deprecation macros
commit 86f3e1b95d65e35f9d66b3924ff4a8855bc78403 Author: Christian Persch <[email protected]> Date: Wed Jun 13 01:03:55 2012 +0200 libdocument: Add deprecation macros Add deprecation macros similar to GLIB_DEPRECATED[_FOR].
1 parent 14031ff commit 9511b27

File tree

3 files changed

+34
-0
lines changed

3 files changed

+34
-0
lines changed

libdocument/Makefile.am

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ INST_H_SRC_FILES = \
3535
ev-link-action.h \
3636
ev-link-dest.h \
3737
ev-link.h \
38+
ev-macros.h \
3839
ev-mapping-list.h \
3940
ev-page.h \
4041
ev-render-context.h \

libdocument/ev-macros.h

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*
2+
* Copyright © 2012 Christian Persch
3+
*
4+
* This library is free software; you can redistribute it and/or modify it
5+
* under the terms of the GNU Lesser General Public License as published by the
6+
* Free Software Foundation; either version 2.1 of the License, or (at your
7+
* option) any later version.
8+
*
9+
* This library is distributed in the hope that it will be useful, but
10+
* WITHOUT ANY WARRANTY; without even the implied warranty of
11+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12+
* Lesser General Public License for more details.
13+
*
14+
* You should have received a copy of the GNU Lesser General Public License along
15+
* with this program; if not, write to the Free Software Foundation, Inc.,
16+
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17+
*/
18+
19+
#ifndef EV_MACROS_H
20+
#define EV_MACROS_H
21+
22+
#if defined(EV_DISABLE_DEPRECATION_WARNINGS) || defined(EVINCE_COMPILATION)
23+
#define EV_DEPRECATED
24+
#define EV_DEPRECATED_FOR(f)
25+
#define EV_UNAVAILABLE(maj,min)
26+
#else
27+
#define EV_DEPRECATED G_DEPRECATED
28+
#define EV_DEPRECATED_FOR(f) G_DEPRECATED_FOR(f)
29+
#define EV_UNAVAILABLE(maj,min) G_UNAVAILABLE(maj,min)
30+
#endif
31+
32+
#endif /* #ifndef EV_MACROS_H */

xreader-document.h

+1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
#include <libdocument/ev-selection.h>
5757
#include <libdocument/ev-transition-effect.h>
5858
#include <libdocument/ev-version.h>
59+
#include <libdocument/ev-macros.h>
5960

6061
#undef __EV_XREADER_DOCUMENT_H_INSIDE__
6162

0 commit comments

Comments
 (0)