remove global namespacing from internal base headers

Making the Genode namespace global can cause name collisions on
base-linux.

Fix #2158
This commit is contained in:
Emery Hemingway 2016-11-01 19:13:17 +01:00 committed by Christian Helmuth
parent 6dd695f788
commit eff90d759f
2 changed files with 4 additions and 6 deletions

View File

@ -17,8 +17,6 @@
#include <base/output.h>
using namespace Genode;
/**
* Convert digit to ASCII value
@ -114,6 +112,8 @@ static inline void out_unsigned(T value, unsigned base, int pad,
template <typename T, typename OUT_CHAR_FN>
static inline void out_float(T value, unsigned base, unsigned length, OUT_CHAR_FN const &out_char)
{
using namespace Genode;
/* set flag if value is negative */
int neg = value < 0 ? 1 : 0;
@ -154,7 +154,7 @@ namespace Genode { template <size_t, typename> class Buffered_output; }
* The 'WRITE_FN' functor is called with a null-terminated 'char const *'
* as argument.
*/
template <size_t BUF_SIZE, typename BACKEND_WRITE_FN>
template <Genode::size_t BUF_SIZE, typename BACKEND_WRITE_FN>
class Genode::Buffered_output : public Output
{
private:

View File

@ -19,10 +19,8 @@
#include <base/internal/output.h>
#include <base/internal/raw_write_string.h>
using namespace Genode;
Output &Raw::_output()
Genode::Output &Genode::Raw::_output()
{
struct Write_fn { void operator () (char const *s) { raw_write_string(s); } };