Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop the broken TOX_VERSION_REQUIRE macro. #328

Merged
merged 1 commit into from
Dec 16, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions toxcore/tox.api.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand All @@ -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 {

/**
Expand Down
7 changes: 0 additions & 7 deletions toxcore/tox.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down