mbed: version macros are not defined on master

Remove mbed OS and mbed 2 version macros. As master can break anytime (should
not break but can happen and shall be expected that there are changes that might affect the bleeding edge developers), there is no remedy for protecting
the sw via macros (either using some special versions, etc). If it is not
defined, means it is developed version of mbed OS/mbed 2 and it is up to a user
to track changes.

Any release of mbed OS 5 and mbed 2 contains these version macros. Thus won't break anything.
pull/4403/head
Martin Kojtal 2017-05-30 10:45:30 +01:00
parent 3122abee84
commit a7e48f9bce
1 changed files with 0 additions and 23 deletions

23
mbed.h
View File

@ -16,29 +16,6 @@
#ifndef MBED_H
#define MBED_H
/* mbed minor and patch versions for both mbed 2 and mbed OS 5 are 0 on master branch. They are set
to meaningful values for releases and release branches.
*/
#define MBED_LIBRARY_VERSION 0
#if MBED_CONF_RTOS_PRESENT
// RTOS present, this is valid only for mbed OS 5
#define MBED_MAJOR_VERSION 5
#define MBED_MINOR_VERSION 0
#define MBED_PATCH_VERSION 0
#else
// mbed 2
#define MBED_MAJOR_VERSION 2
#define MBED_MINOR_VERSION 0
#define MBED_PATCH_VERSION MBED_LIBRARY_VERSION
#endif
#define MBED_ENCODE_VERSION(major, minor, patch) ((major)*10000 + (minor)*100 + (patch))
#define MBED_VERSION MBED_ENCODE_VERSION(MBED_MAJOR_VERSION, MBED_MINOR_VERSION, MBED_PATCH_VERSION)
#if MBED_CONF_RTOS_PRESENT
#include "rtos/rtos.h"
#endif