Skip to content

Commit 649ce41

Browse files
committed
CpuUid: moved includes of string and vector
The problem appeared in the travis-ci build when building the SAMR21G18A target. It seems this target lacks support of STL somehow. If DEVICE_CPUUID is not defined, the string and vector headers would still be included - so on "buggy stl" targets, this would lead to build error
1 parent c3fce7b commit 649ce41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/CpuUid.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616
#ifndef MBED_CPUUID_H
1717
#define MBED_CPUUID_H
1818

19-
#include <string>
20-
#include <vector>
2119
#include "platform/platform.h"
2220

2321
#if defined(DEVICE_CPUUID) || defined(DOXYGEN_ONLY)
2422

23+
#include <string>
24+
#include <vector>
2525

2626
namespace mbed {
2727
/** \addtogroup drivers */

0 commit comments

Comments
 (0)