Skip to content

Commit db53d3d

Browse files
committed
Remove forceful "using namespace arduino" from headers
First step to fix arduino/ArduinoCore-samd#606
1 parent 2af4a9c commit db53d3d

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

Diff for: api/Print.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,4 @@ class Print
9393
};
9494

9595
}
96-
using namespace arduino;
96+
using arduino::Print;

Diff for: api/String.h

+3
Original file line numberDiff line numberDiff line change
@@ -255,5 +255,8 @@ class StringSumHelper : public String
255255

256256
} // namespace arduino
257257

258+
using arduino::__FlashStringHelper;
259+
using arduino::String;
260+
258261
#endif // __cplusplus
259262
#endif // __ARDUINO_STRINGS__

Diff for: api/Udp.h

+1-3
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,4 @@ class UDP : public Stream {
8787
uint8_t* rawIPAddress(IPAddress& addr) { return addr.raw_address(); };
8888
};
8989

90-
}
91-
92-
using namespace arduino;
90+
}

0 commit comments

Comments
 (0)