Skip to content
This repository was archived by the owner on Aug 19, 2021. It is now read-only.

Commit f592e82

Browse files
committed
Renamed events.h -> mbed_events.h to avoid potential name collisions
The events.h name may be a common name for header files. On faulty build systems, there is a potential for this common name to cause the wrong header file to be included. discussion #6
1 parent e249e2d commit f592e82

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

EventLoop.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifdef MBED_CONF_RTOS_PRESENT
22
#include "EventLoop.h"
33

4-
#include "events.h"
4+
#include "mbed_events.h"
55
#include "rtos.h"
66
#include "mbed.h"
77

EventQueue.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include "EventQueue.h"
22

3-
#include "events.h"
3+
#include "mbed_events.h"
44
#include "mbed.h"
55

66

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
The events library provides a flexible event queue for scheduling events.
44

55
``` cpp
6-
#include "events.h"
6+
#include "mbed_events.h"
77
#include <stdio.h>
88

99
int main() {

TESTS/events/queue/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "events.h"
1+
#include "mbed_events.h"
22
#include "mbed.h"
33
#include "rtos.h"
44
#include "greentea-client/test_env.h"

events.h renamed to mbed_events.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
#ifndef EVENTS_CPP_H
17-
#define EVENTS_CPP_H
16+
#ifndef MBED_EVENTS_H
17+
#define MBED_EVENTS_H
1818

1919

2020
#include "events-c/events.h"

0 commit comments

Comments
 (0)