Added strict namespace macro

master
Ryan Lee 2016-09-23 08:15:23 -04:00
parent 5a829ee82f
commit 5d5a31562a
5 changed files with 8 additions and 4 deletions

View File

@ -10,7 +10,7 @@
#include "peerconnect.h"
using namespace std;
using namespace pc;
void usage(const char* prg);

View File

@ -10,7 +10,7 @@
#include "peerconnect.h"
using namespace std;
using namespace pc;
void usage(const char* prg);

View File

@ -25,7 +25,7 @@
#endif
using namespace std;
using namespace pc;
bool parse_args(int argc, char* argv[], string& local_peer, string& remote_peer, bool& server_mode);
void usage(const char* prg);

View File

@ -15,6 +15,10 @@
#include "common.h"
#include "controlobserver.h"
#ifndef USE_PEERCONNECT_STRICT_NAMESPACE
using namespace pc;
#endif // USE_PEERCONNECT_STRICT_NAMESPACE
namespace pc {
class Control;

View File

@ -12,7 +12,7 @@
#include "peerconnect.h"
using namespace std;
using namespace pc;
void test_normal();
void test_writable();