mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-08-02 17:56:06 -04:00
26 lines
518 B
C++
26 lines
518 B
C++
|
|
#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 {
|
|
|
|
enum class IpMode { IPV4, IPV6, ALL, AUTO }; // AUTO: Server decides the protocol
|
|
typedef zim::size_type size_type;
|
|
typedef zim::offset_type offset_type;
|
|
|
|
}
|
|
|
|
#endif //_KIWIX_COMMON_H_
|