Allow us to declare method to be deprecated.

This commit is contained in:
Matthieu Gautier committed 2018-04-19 18:04:07 +02:00
1 parent 6e13d44459
commit 1f3fcd85a0
2 files changed
+25

No files matched your search

+24
View File
@@ -0,0 +1,24 @@
#ifndef _KIWIX_COMMON_H_
#define _KIWIX_COMMON_H_
#include <zim/zim.h>
#ifdef __GNUC__
#define DEPRECATED __attribute__((deprecated))
#elif defined(_MSC_VER)
#define DEPRECATED __declspec(deprecated)
#else
#praga message("WARNING: You need to implement DEPRECATED for this compiler")
#define DEPRECATED
#endif
namespace kiwix {
typedef zim::size_type size_type;
typedef zim::offset_type offset_type;
}
#endif //_KIWIX_COMMON_H_
+1
View File
@@ -1,4 +1,5 @@
headers = [
'common.h',
'library.h',
'manager.h',
'opds_dumper.h',