aboutsummaryrefslogtreecommitdiff
path: root/headers.h
diff options
context:
space:
mode:
authorSatoshi Nakamoto <satoshin@gmx.com>2010-07-26 17:44:51 +0000
committerGavin Andresen <gavinandresen@gmail.com>2010-07-26 17:44:51 +0000
commitb6dc3b517b74ef2baa0e707f837a65b4ff5a6f2e (patch)
tree757fa9f209b9cb6a42c6b6e6df9e58cad074cd03 /headers.h
parentf0c11b1917009f1648eb42f1d17f35196fb7c539 (diff)
bitcoind now compiles without wxWidgets or wxBase
Diffstat (limited to 'headers.h')
-rw-r--r--headers.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/headers.h b/headers.h
index 7158b9afa9..b0ab18c389 100644
--- a/headers.h
+++ b/headers.h
@@ -18,13 +18,19 @@
#define _WIN32_IE 0x0400
#define WIN32_LEAN_AND_MEAN 1
#define __STDC_LIMIT_MACROS // to enable UINT64_MAX from stdint.h
+#ifdef GUI
#include <wx/wx.h>
#include <wx/stdpaths.h>
#include <wx/snglinst.h>
-#if wxUSE_GUI
#include <wx/utils.h>
#include <wx/clipbrd.h>
#include <wx/taskbar.h>
+#else
+#ifdef __WXMAC_OSX__
+#define __WXMAC__ 1
+#define __WXOSX__ 1
+#define __BSD__ 1
+#endif
#endif
#include <openssl/buffer.h>
#include <openssl/ecdsa.h>
@@ -61,6 +67,7 @@
#include <boost/filesystem.hpp>
#include <boost/filesystem/fstream.hpp>
#include <boost/algorithm/string.hpp>
+#include <boost/thread.hpp>
#include <boost/interprocess/sync/interprocess_mutex.hpp>
#include <boost/interprocess/sync/interprocess_recursive_mutex.hpp>
#include <boost/date_time/gregorian/gregorian_types.hpp>
@@ -82,12 +89,14 @@
#include <sys/time.h>
#include <sys/resource.h>
#include <sys/socket.h>
+#include <sys/stat.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <unistd.h>
#include <errno.h>
#include <net/if.h>
#include <ifaddrs.h>
+#include <fcntl.h>
#endif
#ifdef __BSD__
#include <netinet/in.h>
@@ -111,10 +120,12 @@ using namespace boost;
#include "irc.h"
#include "main.h"
#include "rpc.h"
-#if wxUSE_GUI
+#ifdef GUI
#include "uibase.h"
-#endif
#include "ui.h"
+#else
+#include "noui.h"
+#endif
#include "init.h"
#include "xpm/addressbook16.xpm"