Index: common/Compiler.h
===================================================================
--- common/Compiler.h	(revision b53c6b345affaea1c625ed8caa8faf8df17f5992)
+++ common/Compiler.h	(revision b53c6b345affaea1c625ed8caa8faf8df17f5992)
@@ -0,0 +1,11 @@
+#if defined _WIN64
+   #define WINDOWS
+#elif defined _WIN32
+   #define WINDOWS
+#elif defined __linux
+   #define LINUX
+#elif defined __unix
+   #define LINUX
+#elif defined __posix
+   #define LINUX
+#endif
Index: common/Message.cpp
===================================================================
--- common/Message.cpp	(revision b53c6b345affaea1c625ed8caa8faf8df17f5992)
+++ common/Message.cpp	(revision b53c6b345affaea1c625ed8caa8faf8df17f5992)
@@ -0,0 +1,24 @@
+#include "Message.h"
+
+#include "Compiler.h"
+
+#if defined WINDOWS
+   #include <winsock2.h>
+   #include <WS2tcpip.h>
+#elif defined LINUX
+   #include <sys/socket.h>
+   #include <netinet/in.h>
+#endif
+
+int sendMessage(NETWORK_MSG *msg, int sock, struct sockaddr_in *dest)
+{
+   return sendto(sock, (char*)msg, sizeof(NETWORK_MSG), 0, (struct sockaddr *)dest, sizeof(struct sockaddr_in));
+}
+
+int receiveMessage(NETWORK_MSG *msg, int sock, struct sockaddr_in *dest)
+{
+   socklen_t socklen = sizeof(struct sockaddr_in);
+
+   // assume we don't care about the value of socklen
+   return recvfrom(sock, (char*)msg, sizeof(NETWORK_MSG), 0, (struct sockaddr *)dest, &socklen);
+}
Index: common/Message.h
===================================================================
--- common/Message.h	(revision b53c6b345affaea1c625ed8caa8faf8df17f5992)
+++ common/Message.h	(revision b53c6b345affaea1c625ed8caa8faf8df17f5992)
@@ -0,0 +1,19 @@
+#ifndef _MESSAGE_H
+#define _MESSAGE_H
+
+#define MSG_TYPE_REGISTER     1
+#define MSG_TYPE_LOGIN        2
+#define MSG_TYPE_LOGOUT       3
+#define MSG_TYPE_CHAT         4
+
+typedef struct
+{
+   short type;
+   char buffer[256];
+} NETWORK_MSG;
+
+int sendMessage(NETWORK_MSG *msg, int sock, struct sockaddr_in *dest);
+
+int receiveMessage(NETWORK_MSG *msg, int sock, struct sockaddr_in *dest);
+
+#endif
Index: common/compiler.h
===================================================================
--- common/compiler.h	(revision 8e540f4f076cccb0fd4d74b3fbb0902d34ce5444)
+++ 	(revision )
@@ -1,11 +1,0 @@
-#if defined _WIN64
-   #define WINDOWS
-#elif defined _WIN32
-   #define WINDOWS
-#elif defined __linux
-   #define LINUX
-#elif defined __unix
-   #define LINUX
-#elif defined __posix
-   #define LINUX
-#endif
Index: common/message.cpp
===================================================================
--- common/message.cpp	(revision 8e540f4f076cccb0fd4d74b3fbb0902d34ce5444)
+++ 	(revision )
@@ -1,24 +1,0 @@
-#include "message.h"
-
-#include "compiler.h"
-
-#if defined WINDOWS
-   #include <winsock2.h>
-   #include <WS2tcpip.h>
-#elif defined LINUX
-   #include <sys/socket.h>
-   #include <netinet/in.h>
-#endif
-
-int sendMessage(NETWORK_MSG *msg, int sock, struct sockaddr_in *dest)
-{
-   return sendto(sock, (char*)msg, sizeof(NETWORK_MSG), 0, (struct sockaddr *)dest, sizeof(struct sockaddr_in));
-}
-
-int receiveMessage(NETWORK_MSG *msg, int sock, struct sockaddr_in *dest)
-{
-   socklen_t socklen = sizeof(struct sockaddr_in);
-
-   // assume we don't care about the value of socklen
-   return recvfrom(sock, (char*)msg, sizeof(NETWORK_MSG), 0, (struct sockaddr *)dest, &socklen);
-}
Index: common/message.h
===================================================================
--- common/message.h	(revision 8e540f4f076cccb0fd4d74b3fbb0902d34ce5444)
+++ 	(revision )
@@ -1,19 +1,0 @@
-#ifndef _MESSAGE_H
-#define _MESSAGE_H
-
-#define MSG_TYPE_REGISTER     1
-#define MSG_TYPE_LOGIN        2
-#define MSG_TYPE_LOGOUT       3
-#define MSG_TYPE_CHAT         4
-
-typedef struct
-{
-   short type;
-   char buffer[256];
-} NETWORK_MSG;
-
-int sendMessage(NETWORK_MSG *msg, int sock, struct sockaddr_in *dest);
-
-int receiveMessage(NETWORK_MSG *msg, int sock, struct sockaddr_in *dest);
-
-#endif
