diff options
author | sirius-m <sirius-m@1a98c847-1fd6-4fd8-948a-caf3550aa51b> | 2009-10-31 09:11:43 +0000 |
---|---|---|
committer | sirius-m <sirius-m@1a98c847-1fd6-4fd8-948a-caf3550aa51b> | 2009-10-31 09:11:43 +0000 |
commit | e874738d3de335faacb83d0398cabdff7477bfa0 (patch) | |
tree | 6f8b6bdd3a53a58371dacb507d06ae6aaa18daf3 /headers.h | |
parent | 8938414f0c1e325a3c2242b703f24411956aee15 (diff) | |
download | bitcoin-e874738d3de335faacb83d0398cabdff7477bfa0.tar.xz |
Linux alternatives for the Windows headers and PerformanceCounter. Some typedefs and #defines for the Linux build. Fixed GetDataDir.
Diffstat (limited to 'headers.h')
-rw-r--r-- | headers.h | 27 |
1 files changed, 18 insertions, 9 deletions
@@ -25,20 +25,13 @@ #include <openssl/evp.h>
#include <openssl/rand.h>
#include <openssl/sha.h>
-#include <openssl/ripemd.h>
-#include <windows.h>
-#include <winsock2.h>
-#include <mswsock.h>
-#include <shlobj.h>
-#include <shlwapi.h>
+#include <openssl/ripemd.h> #include <stdio.h>
#include <stdlib.h>
-#include <io.h>
#include <math.h>
#include <limits.h>
#include <float.h>
#include <assert.h>
-#include <process.h>
#include <malloc.h>
#include <memory>
#define BOUNDSCHECK 1
@@ -56,7 +49,23 @@ #include <boost/tuple/tuple.hpp>
#include <boost/tuple/tuple_comparison.hpp>
#include <boost/tuple/tuple_io.hpp>
-#include <boost/array.hpp>
+#include <boost/array.hpp> + +#ifdef __WXMSW__
+#include <windows.h>
+#include <winsock2.h>
+#include <mswsock.h> +#include <shlobj.h>
+#include <shlwapi.h> +#include <io.h> +#include <process.h> +#else +#include <sys/time.h>
+#include <sys/socket.h>
+#include <arpa/inet.h> +#include <unistd.h> +#endif +
#pragma hdrstop
using namespace std;
using namespace boost;
|