Skip to content

Commit 2ff681b

Browse files
committed
Avoid symbol redefinition
Apprently clang and msvc are fine with it, but GCC isn't.
1 parent 9663ca3 commit 2ff681b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/internal/sio_client_impl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ void set_##__FIELD__(__TYPE__ const& l) \
8989
// Client Functions - such as send, etc.
9090
void connect(const std::string& uri);
9191

92-
socket::ptr const& socket(const std::string& nsp);
92+
::sio::socket::ptr const& socket(const std::string& nsp);
9393

9494
// Closes the connection
9595
void close();

src/sio_client.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ namespace sio
6262

6363
void set_reconnect_delay_max(unsigned millis);
6464

65-
socket::ptr const& socket(const std::string& nsp = "");
65+
::sio::socket::ptr const& socket(const std::string& nsp = "");
6666

6767
// Closes the connection
6868
void close();

0 commit comments

Comments
 (0)