summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--toxcore/tox.api.h9
-rw-r--r--toxcore/tox.h7
2 files changed, 1 insertions, 15 deletions
diff --git a/toxcore/tox.api.h b/toxcore/tox.api.h
index ee70bbd9..da7e8c23 100644
--- a/toxcore/tox.api.h
+++ b/toxcore/tox.api.h
@@ -183,7 +183,7 @@ const VERSION_PATCH = 0;
183 183
184/** 184/**
185 * A macro to check at preprocessing time whether the client code is compatible 185 * A macro to check at preprocessing time whether the client code is compatible
186 * with the installed version of Tox. Leading zeros in the version number are 186 * with the installed version of Tox. Leading zeros in the version number are
187 * ignored. E.g. 0.1.5 is to 0.1.4 what 1.5 is to 1.4, that is: it can add new 187 * ignored. E.g. 0.1.5 is to 0.1.4 what 1.5 is to 1.4, that is: it can add new
188 * features, but can't break the API. 188 * features, but can't break the API.
189 */ 189 */
@@ -202,13 +202,6 @@ const VERSION_PATCH = 0;
202 ) \ 202 ) \
203 ) 203 )
204 204
205/**
206 * A macro to make compilation fail if the client code is not compatible with
207 * the installed version of Tox.
208 */
209#define TOX_VERSION_REQUIRE(MAJOR, MINOR, PATCH) \
210 typedef char tox_required_version[TOX_IS_COMPATIBLE(MAJOR, MINOR, PATCH) ? 1 : -1]
211
212static namespace version { 205static namespace version {
213 206
214 /** 207 /**
diff --git a/toxcore/tox.h b/toxcore/tox.h
index 934145a3..e0f36343 100644
--- a/toxcore/tox.h
+++ b/toxcore/tox.h
@@ -206,13 +206,6 @@ uint32_t tox_version_patch(void);
206 ) 206 )
207 207
208/** 208/**
209 * A macro to make compilation fail if the client code is not compatible with
210 * the installed version of Tox.
211 */
212#define TOX_VERSION_REQUIRE(MAJOR, MINOR, PATCH) \
213 typedef char tox_required_version[TOX_IS_COMPATIBLE(MAJOR, MINOR, PATCH) ? 1 : -1]
214
215/**
216 * Return whether the compiled library version is compatible with the passed 209 * Return whether the compiled library version is compatible with the passed
217 * version numbers. 210 * version numbers.
218 */ 211 */