From 4dccd668d2e356261114aeb9d70c360294a19563 Mon Sep 17 00:00:00 2001 From: "Gregory Mullen (grayhatter)" Date: Wed, 14 Dec 2016 03:31:16 -0800 Subject: [PATCH] Drop an unworking Macro Closes #327 --- toxcore/tox.api.h | 9 +-------- toxcore/tox.h | 7 ------- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/toxcore/tox.api.h b/toxcore/tox.api.h index ee70bbd966..da7e8c234b 100644 --- a/toxcore/tox.api.h +++ b/toxcore/tox.api.h @@ -183,7 +183,7 @@ const VERSION_PATCH = 0; /** * A macro to check at preprocessing time whether the client code is compatible - * with the installed version of Tox. Leading zeros in the version number are + * with the installed version of Tox. Leading zeros in the version number are * ignored. E.g. 0.1.5 is to 0.1.4 what 1.5 is to 1.4, that is: it can add new * features, but can't break the API. */ @@ -202,13 +202,6 @@ const VERSION_PATCH = 0; ) \ ) -/** - * A macro to make compilation fail if the client code is not compatible with - * the installed version of Tox. - */ -#define TOX_VERSION_REQUIRE(MAJOR, MINOR, PATCH) \ - typedef char tox_required_version[TOX_IS_COMPATIBLE(MAJOR, MINOR, PATCH) ? 1 : -1] - static namespace version { /** diff --git a/toxcore/tox.h b/toxcore/tox.h index 934145a3f3..e0f36343ac 100644 --- a/toxcore/tox.h +++ b/toxcore/tox.h @@ -205,13 +205,6 @@ uint32_t tox_version_patch(void); ) \ ) -/** - * A macro to make compilation fail if the client code is not compatible with - * the installed version of Tox. - */ -#define TOX_VERSION_REQUIRE(MAJOR, MINOR, PATCH) \ - typedef char tox_required_version[TOX_IS_COMPATIBLE(MAJOR, MINOR, PATCH) ? 1 : -1] - /** * Return whether the compiled library version is compatible with the passed * version numbers.