Skip to content

Commit d6a2632

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

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

api/Print.h

Lines changed: 1 addition & 1 deletion
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;

api/String.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,5 +255,7 @@ class StringSumHelper : public String
255255

256256
} // namespace arduino
257257

258+
using arduino::__FlashStringHelper;
259+
258260
#endif // __cplusplus
259261
#endif // __ARDUINO_STRINGS__

api/Udp.h

Lines changed: 1 addition & 3 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy