Skip to content

Commit

Permalink
source: fix compilation and linkage on Windows
Browse files Browse the repository at this point in the history
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
  • Loading branch information
tycho committed Jan 23, 2010
1 parent 4022828 commit 001d0dd
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions source/compare.cpp
Expand Up @@ -9,6 +9,7 @@
*
*/

#include <crisscross/universal_include.h>
#include <crisscross/compare.h>

#include <cstring>
Expand Down
6 changes: 5 additions & 1 deletion source/console.cpp
Expand Up @@ -11,7 +11,9 @@

#include <crisscross/universal_include.h>

#ifndef TARGET_OS_WINDOWS
#include <pthread.h>
#endif
#include <cstdio>
#include <cstring>

Expand All @@ -24,9 +26,11 @@
#include <sys/ioctl.h>
#endif
#include <sys/wait.h>
#include <fcntl.h>
#include <signal.h>
#else
#include <io.h>
#endif
#include <fcntl.h>

#if defined(TARGET_COMPILER_BORLAND)
typedef long intptr_t;
Expand Down
2 changes: 2 additions & 0 deletions source/crisscross/universal_include.h
Expand Up @@ -146,6 +146,8 @@
#define _CRTDBG_MAP_ALLOC
#endif
#if defined (ENABLE_SYMBOL_ENGINE)
#include <winsock2.h>
#include <windows.h>
#include <dbghelp.h>
#pragma comment (lib, "dbghelp.lib")
#endif
Expand Down
1 change: 1 addition & 0 deletions source/string_utils.cpp
Expand Up @@ -9,6 +9,7 @@
*
*/

#include <crisscross/universal_include.h>
#include <crisscross/string_utils.h>

#include <cstring>
Expand Down
2 changes: 2 additions & 0 deletions source/tcpsocket.cpp
Expand Up @@ -33,6 +33,8 @@
#define INVALID_SOCKET -1
#define SOCKET_ERROR -1
#else
#include <winsock2.h>
#include <mstcpip.h>
typedef int socklen_t;
#endif

Expand Down

0 comments on commit 001d0dd

Please sign in to comment.