Multiple definitions

This commit is contained in:
Alex Hultman
2018-11-04 08:59:34 +01:00
parent 62ac8d16de
commit 0d09d1db02
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -29,10 +29,10 @@
namespace uWS {
/* Some pre-defined status constants to use with writeStatus */
const char *HTTP_200_OK = "200 OK";
static const char *HTTP_200_OK = "200 OK";
/* The general timeout for HTTP sockets */
const int HTTP_TIMEOUT_S = 10;
static const int HTTP_TIMEOUT_S = 10;
template <bool SSL>
struct HttpResponse : public AsyncSocket<SSL> {
+1 -1
View File
@@ -122,7 +122,7 @@ public:
};
/* Can be called from any thread to run the thread local loop */
void run() {
inline void run() {
Loop::defaultLoop()->run();
}
+2 -2
View File
@@ -24,7 +24,7 @@
namespace uWS {
namespace utils {
int u32toaHex(uint32_t value, char *dst) {
inline int u32toaHex(uint32_t value, char *dst) {
char palette[] = "0123456789abcdef";
char temp[10];
char *p = temp;
@@ -42,7 +42,7 @@ int u32toaHex(uint32_t value, char *dst) {
return ret;
}
int u32toa(uint32_t value, char *dst) {
inline int u32toa(uint32_t value, char *dst) {
char temp[10];
char *p = temp;
do {