Allow us to declare method to be deprecated.

This commit is contained in:
Matthieu Gautier 2018-03-15 15:27:13 +01:00
parent 6e13d44459
commit 1f3fcd85a0
2 changed files with 25 additions and 0 deletions

24
include/common.h Normal file
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_

View File

@ -1,4 +1,5 @@
headers = [
'common.h',
'library.h',
'manager.h',
'opds_dumper.h',