Skip to content

Commit

Permalink
Correct linker symbol collision problem.
Browse files Browse the repository at this point in the history
Need to redefine this namespace so we don't create linker problems.  Such problems may be created if our static library is imported by another project that uses an incompatible version of websocketpp.
  • Loading branch information
codemercenary committed Aug 14, 2014
1 parent 76bdecc commit 55e2b23
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/autonet/AutoNetServerImpl.hpp
@@ -1,13 +1,18 @@
#pragma once
#include "AutoNetServer.h"
#include "AutowiringEvents.h"
#include <cctype>
#include <json11/json11.hpp>
#include <websocketpp/server.hpp>
#include <websocketpp/config/asio_no_tls.hpp>
#include <cctype>
#include <map>
#include <set>

// Need to redefine this namespace so we don't create linker problems. Such problems may be
// created if our static library is imported by another project that uses an incompatible
// version of websocketpp.
#define websocketpp websocketpp_autonet
#include <websocketpp/server.hpp>
#include <websocketpp/config/asio_no_tls.hpp>

struct TypeIdentifierBase;

class AutoNetServerImpl:
Expand Down

0 comments on commit 55e2b23

Please sign in to comment.