Browse Source

Revert all asio.h includes except for in 2 files, DebuggingStateWrapper.h and Transact.cpp. After enabling WIN32_LEAN_AND_MEAN, all the asio.h include issues, commit 20b6e24ffcab088e71092e07030a377d3135da3c, went away.

cl-refactor
jhuntley 10 years ago
parent
commit
6d62e3ab26
  1. 3
      alethzero/MainWin.h
  2. 1
      alethzero/OurWebThreeStubServer.h
  3. 3
      alethzero/Transact.cpp
  4. 2
      eth/main.cpp
  5. 3
      libethereum/All.h
  6. 2
      libethereum/Client.h
  7. 3
      libethereum/EthereumHost.h
  8. 2
      libp2p/Host.cpp
  9. 3
      libp2p/Host.h
  10. 2
      libp2p/Network.cpp
  11. 2
      libp2p/NodeTable.h
  12. 3
      libp2p/Session.h
  13. 3
      libp2p/UDP.h
  14. 2
      libwebthree/WebThree.cpp
  15. 3
      libwhisper/Common.h
  16. 3
      libwhisper/Interface.h
  17. 3
      libwhisper/Message.h
  18. 3
      libwhisper/WhisperHost.h
  19. 3
      libwhisper/WhisperPeer.h
  20. 3
      mix/AppContext.cpp
  21. 3
      mix/AppContext.h
  22. 3
      mix/CodeEditorExtensionManager.cpp
  23. 3
      mix/DebuggingStateWrapper.h
  24. 3
      mix/Extension.cpp
  25. 3
      mix/Extension.h
  26. 3
      mix/QContractDefinition.cpp
  27. 2
      neth/main.cpp
  28. 2
      test/TestHelper.cpp
  29. 2
      test/TestHelper.h
  30. 3
      test/checkRandomTest.cpp
  31. 2
      test/createRandomTest.cpp
  32. 2
      test/fork.cpp
  33. 2
      test/genesis.cpp
  34. 2
      test/hexPrefix.cpp
  35. 2
      test/net.cpp
  36. 2
      test/rlp.cpp
  37. 2
      test/state.cpp
  38. 2
      test/trie.cpp
  39. 2
      test/txTest.cpp
  40. 2
      test/vm.cpp
  41. 2
      test/vm.h
  42. 2
      test/whisperTopic.cpp
  43. 2
      third/MainWin.cpp

3
alethzero/MainWin.h

@ -27,9 +27,6 @@
#include <map> #include <map>
// Make sure boost/asio.hpp is included before windows.h.
#include <boost/asio.hpp>
#include <QtNetwork/QNetworkAccessManager> #include <QtNetwork/QNetworkAccessManager>
#include <QtCore/QAbstractListModel> #include <QtCore/QAbstractListModel>
#include <QtCore/QMutex> #include <QtCore/QMutex>

1
alethzero/OurWebThreeStubServer.h

@ -20,7 +20,6 @@
*/ */
#include <queue> #include <queue>
#include <boost/asio.hpp>
#include <QtCore/QObject> #include <QtCore/QObject>
#include <libdevcore/Guards.h> #include <libdevcore/Guards.h>
#include <libethcore/CommonJS.h> #include <libethcore/CommonJS.h>

3
alethzero/Transact.cpp

@ -19,6 +19,9 @@
* @date 2015 * @date 2015
*/ */
// Make sure boost/asio.hpp is included before windows.h.
#include <boost/asio.hpp>
#include "Transact.h" #include "Transact.h"
#include <fstream> #include <fstream>

2
eth/main.cpp

@ -26,8 +26,6 @@
#include <iostream> #include <iostream>
#include <signal.h> #include <signal.h>
// Make sure boost/asio.hpp is included before windows.h.
#include <boost/asio.hpp>
#include <boost/algorithm/string.hpp> #include <boost/algorithm/string.hpp>
#include <boost/algorithm/string/trim_all.hpp> #include <boost/algorithm/string/trim_all.hpp>

3
libethereum/All.h

@ -1,8 +1,5 @@
#pragma once #pragma once
// Make sure boost/asio.hpp is included before windows.h.
#include <boost/asio.hpp>
#include "Account.h" #include "Account.h"
#include "CanonBlockChain.h" #include "CanonBlockChain.h"
#include "Client.h" #include "Client.h"

2
libethereum/Client.h

@ -28,8 +28,6 @@
#include <string> #include <string>
#include <array> #include <array>
// Make sure boost/asio.hpp is included before windows.h.
#include <boost/asio.hpp>
#include <boost/utility.hpp> #include <boost/utility.hpp>
#include <libdevcore/Common.h> #include <libdevcore/Common.h>

3
libethereum/EthereumHost.h

@ -29,9 +29,6 @@
#include <utility> #include <utility>
#include <thread> #include <thread>
// Make sure boost/asio.hpp is included before windows.h.
#include <boost/asio.hpp>
#include <libdevcore/Guards.h> #include <libdevcore/Guards.h>
#include <libdevcore/Worker.h> #include <libdevcore/Worker.h>
#include <libdevcore/RangeMask.h> #include <libdevcore/RangeMask.h>

2
libp2p/Host.cpp

@ -25,8 +25,6 @@
#include <thread> #include <thread>
#include <mutex> #include <mutex>
// Make sure boost/asio.hpp is included before windows.h.
#include <boost/asio.hpp>
#include <boost/algorithm/string.hpp> #include <boost/algorithm/string.hpp>
#include <libdevcore/Common.h> #include <libdevcore/Common.h>

3
libp2p/Host.h

@ -31,9 +31,6 @@
#include <thread> #include <thread>
#include <chrono> #include <chrono>
// Make sure boost/asio.hpp is included before windows.h.
#include <boost/asio.hpp>
#include <libdevcore/Guards.h> #include <libdevcore/Guards.h>
#include <libdevcore/Worker.h> #include <libdevcore/Worker.h>
#include <libdevcore/RangeMask.h> #include <libdevcore/RangeMask.h>

2
libp2p/Network.cpp

@ -26,8 +26,6 @@
#include <ifaddrs.h> #include <ifaddrs.h>
#endif #endif
// Make sure boost/asio.hpp is included before windows.h.
#include <boost/asio.hpp>
#include <boost/algorithm/string.hpp> #include <boost/algorithm/string.hpp>
#include <libdevcore/Common.h> #include <libdevcore/Common.h>

2
libp2p/NodeTable.h

@ -24,8 +24,6 @@
#include <algorithm> #include <algorithm>
#include <deque> #include <deque>
// Make sure boost/asio.hpp is included before windows.h.
#include <boost/asio.hpp>
#include <boost/integer/static_log2.hpp> #include <boost/integer/static_log2.hpp>
#include <libp2p/UDP.h> #include <libp2p/UDP.h>

3
libp2p/Session.h

@ -28,9 +28,6 @@
#include <memory> #include <memory>
#include <utility> #include <utility>
// Make sure boost/asio.hpp is included before windows.h.
#include <boost/asio.hpp>
#include <libdevcore/Common.h> #include <libdevcore/Common.h>
#include <libdevcore/RLP.h> #include <libdevcore/RLP.h>
#include <libdevcore/RangeMask.h> #include <libdevcore/RangeMask.h>

3
libp2p/UDP.h

@ -27,9 +27,6 @@
#include <deque> #include <deque>
#include <array> #include <array>
// Make sure boost/asio.hpp is included before windows.h.
#include <boost/asio.hpp>
#include <libdevcore/Guards.h> #include <libdevcore/Guards.h>
#include <libdevcrypto/Common.h> #include <libdevcrypto/Common.h>
#include <libdevcrypto/SHA3.h> #include <libdevcrypto/SHA3.h>

2
libwebthree/WebThree.cpp

@ -24,8 +24,6 @@
#include <chrono> #include <chrono>
#include <thread> #include <thread>
// Make sure boost/asio.hpp is included before windows.h.
#include <boost/asio.hpp>
#include <boost/filesystem.hpp> #include <boost/filesystem.hpp>
#include <libdevcore/Log.h> #include <libdevcore/Log.h>

3
libwhisper/Common.h

@ -24,9 +24,6 @@
#include <string> #include <string>
#include <chrono> #include <chrono>
// Make sure boost/asio.hpp is included before windows.h.
#include <boost/asio.hpp>
#include <libdevcore/Common.h> #include <libdevcore/Common.h>
#include <libdevcore/Log.h> #include <libdevcore/Log.h>
#include <libdevcore/RLP.h> #include <libdevcore/RLP.h>

3
libwhisper/Interface.h

@ -27,9 +27,6 @@
#include <memory> #include <memory>
#include <utility> #include <utility>
// Make sure boost/asio.hpp is included before windows.h.
#include <boost/asio.hpp>
#include <libdevcore/RLP.h> #include <libdevcore/RLP.h>
#include <libdevcore/Guards.h> #include <libdevcore/Guards.h>
#include <libdevcrypto/SHA3.h> #include <libdevcrypto/SHA3.h>

3
libwhisper/Message.h

@ -27,9 +27,6 @@
#include <memory> #include <memory>
#include <utility> #include <utility>
// Make sure boost/asio.hpp is included before windows.h.
#include <boost/asio.hpp>
#include <libdevcore/RLP.h> #include <libdevcore/RLP.h>
#include <libdevcore/Guards.h> #include <libdevcore/Guards.h>
#include <libdevcrypto/Common.h> #include <libdevcrypto/Common.h>

3
libwhisper/WhisperHost.h

@ -27,9 +27,6 @@
#include <memory> #include <memory>
#include <utility> #include <utility>
// Make sure boost/asio.hpp is included before windows.h.
#include <boost/asio.hpp>
#include <libdevcore/RLP.h> #include <libdevcore/RLP.h>
#include <libdevcore/Worker.h> #include <libdevcore/Worker.h>
#include <libdevcore/Guards.h> #include <libdevcore/Guards.h>

3
libwhisper/WhisperPeer.h

@ -27,9 +27,6 @@
#include <memory> #include <memory>
#include <utility> #include <utility>
// Make sure boost/asio.hpp is included before windows.h.
#include <boost/asio.hpp>
#include <libdevcore/RLP.h> #include <libdevcore/RLP.h>
#include <libdevcore/Guards.h> #include <libdevcore/Guards.h>
#include <libdevcrypto/SHA3.h> #include <libdevcrypto/SHA3.h>

3
mix/AppContext.cpp

@ -22,9 +22,6 @@
* - KeyEventManager * - KeyEventManager
*/ */
// Make sure boost/asio.hpp is included before windows.h.
#include <boost/asio.hpp>
#include <QMessageBox> #include <QMessageBox>
#include <QClipboard> #include <QClipboard>
#include <QQmlComponent> #include <QQmlComponent>

3
mix/AppContext.h

@ -27,9 +27,6 @@
#pragma once #pragma once
// Make sure boost/asio.hpp is included before windows.h.
#include <boost/asio.hpp>
#include <memory> #include <memory>
#include <QUrl> #include <QUrl>
#include <QObject> #include <QObject>

3
mix/CodeEditorExtensionManager.cpp

@ -20,9 +20,6 @@
* Ethereum IDE client. * Ethereum IDE client.
*/ */
// Make sure boost/asio.hpp is included before windows.h.
#include <boost/asio.hpp>
#include <QQuickItem> #include <QQuickItem>
#include <QGraphicsObject> #include <QGraphicsObject>
#include <QQmlEngine> #include <QQmlEngine>

3
mix/DebuggingStateWrapper.h

@ -22,6 +22,9 @@
#pragma once #pragma once
// Make sure boost/asio.hpp is included before windows.h.
#include <boost/asio.hpp>
#include <QStringList> #include <QStringList>
#include <QMap> #include <QMap>
#include <libdevcore/Common.h> #include <libdevcore/Common.h>

3
mix/Extension.cpp

@ -22,9 +22,6 @@
#include <QDebug> #include <QDebug>
#include <QQmlApplicationEngine> #include <QQmlApplicationEngine>
// Make sure boost/asio.hpp is included before windows.h.
#include <boost/asio.hpp>
#include <libevm/VM.h> #include <libevm/VM.h>
#include <libwebthree/WebThree.h> #include <libwebthree/WebThree.h>
#include "Extension.h" #include "Extension.h"

3
mix/Extension.h

@ -19,9 +19,6 @@
#pragma once #pragma once
// Make sure boost/asio.hpp is included before windows.h.
#include <boost/asio.hpp>
#include <QApplication> #include <QApplication>
#include <QQmlComponent> #include <QQmlComponent>

3
mix/QContractDefinition.cpp

@ -21,9 +21,6 @@
#include <QObject> #include <QObject>
// Make sure boost/asio.hpp is included before windows.h.
#include <boost/asio.hpp>
#include <libsolidity/CompilerStack.h> #include <libsolidity/CompilerStack.h>
#include <libsolidity/AST.h> #include <libsolidity/AST.h>
#include <libsolidity/Scanner.h> #include <libsolidity/Scanner.h>

2
neth/main.cpp

@ -26,8 +26,6 @@
#include <iostream> #include <iostream>
#include <signal.h> #include <signal.h>
// Make sure boost/asio.hpp is included before windows.h.
#include <boost/asio.hpp>
#include <boost/algorithm/string.hpp> #include <boost/algorithm/string.hpp>
#include <boost/algorithm/string/trim_all.hpp> #include <boost/algorithm/string/trim_all.hpp>

2
test/TestHelper.cpp

@ -24,8 +24,6 @@
#include <thread> #include <thread>
#include <chrono> #include <chrono>
// Make sure boost/asio.hpp is included before windows.h.
#include <boost/asio.hpp>
#include <boost/filesystem/path.hpp> #include <boost/filesystem/path.hpp>
#include <libethereum/Client.h> #include <libethereum/Client.h>

2
test/TestHelper.h

@ -23,8 +23,6 @@
#include <functional> #include <functional>
// Make sure boost/asio.hpp is included before windows.h.
#include <boost/asio.hpp>
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>
#include "JsonSpiritHeaders.h" #include "JsonSpiritHeaders.h"

3
test/checkRandomTest.cpp

@ -20,9 +20,6 @@
* Check a random test and return 0/1 for success or failure. To be used for efficiency in the random test simulation. * Check a random test and return 0/1 for success or failure. To be used for efficiency in the random test simulation.
*/ */
// Make sure boost/asio.hpp is included before windows.h.
#include <boost/asio.hpp>
#include <libdevcore/Common.h> #include <libdevcore/Common.h>
#include <libdevcore/Exceptions.h> #include <libdevcore/Exceptions.h>
#include <libdevcore/Log.h> #include <libdevcore/Log.h>

2
test/createRandomTest.cpp

@ -24,8 +24,6 @@
#include <iostream> #include <iostream>
#include <chrono> #include <chrono>
// Make sure boost/asio.hpp is included before windows.h.
#include <boost/asio.hpp>
#include <boost/random.hpp> #include <boost/random.hpp>
#include <boost/filesystem/path.hpp> #include <boost/filesystem/path.hpp>

2
test/fork.cpp

@ -20,8 +20,6 @@
* Tests for different forking behavior * Tests for different forking behavior
*/ */
// Make sure boost/asio.hpp is included before windows.h.
#include <boost/asio.hpp>
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>
#include <boost/filesystem/operations.hpp> #include <boost/filesystem/operations.hpp>

2
test/genesis.cpp

@ -23,8 +23,6 @@
#include <fstream> #include <fstream>
#include <random> #include <random>
// Make sure boost/asio.hpp is included before windows.h.
#include <boost/asio.hpp>
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>
#include "JsonSpiritHeaders.h" #include "JsonSpiritHeaders.h"

2
test/hexPrefix.cpp

@ -22,8 +22,6 @@
#include <fstream> #include <fstream>
// Make sure boost/asio.hpp is included before windows.h.
#include <boost/asio.hpp>
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>
#include "JsonSpiritHeaders.h" #include "JsonSpiritHeaders.h"

2
test/net.cpp

@ -19,8 +19,6 @@
* @date 2014 * @date 2014
*/ */
// Make sure boost/asio.hpp is included before windows.h.
#include <boost/asio.hpp>
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>
#include <libdevcore/Worker.h> #include <libdevcore/Worker.h>

2
test/rlp.cpp

@ -23,8 +23,6 @@
#include <fstream> #include <fstream>
#include <sstream> #include <sstream>
// Make sure boost/asio.hpp is included before windows.h.
#include <boost/asio.hpp>
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>
#include <libdevcore/Log.h> #include <libdevcore/Log.h>

2
test/state.cpp

@ -20,8 +20,6 @@
* State test functions. * State test functions.
*/ */
// Make sure boost/asio.hpp is included before windows.h.
#include <boost/asio.hpp>
#include <boost/filesystem/operations.hpp> #include <boost/filesystem/operations.hpp>
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>

2
test/trie.cpp

@ -23,8 +23,6 @@
#include <fstream> #include <fstream>
#include <random> #include <random>
// Make sure boost/asio.hpp is included before windows.h.
#include <boost/asio.hpp>
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>
#include "JsonSpiritHeaders.h" #include "JsonSpiritHeaders.h"

2
test/txTest.cpp

@ -20,8 +20,6 @@
* Simple peer transaction send test. * Simple peer transaction send test.
*/ */
// Make sure boost/asio.hpp is included before windows.h.
#include <boost/asio.hpp>
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>
#include <boost/filesystem/operations.hpp> #include <boost/filesystem/operations.hpp>

2
test/vm.cpp

@ -22,8 +22,6 @@
#include <chrono> #include <chrono>
// Make sure boost/asio.hpp is included before windows.h.
#include <boost/asio.hpp>
#include <boost/filesystem.hpp> #include <boost/filesystem.hpp>
#include <libethereum/Executive.h> #include <libethereum/Executive.h>

2
test/vm.h

@ -26,8 +26,6 @@ along with cpp-ethereum. If not, see <http://www.gnu.org/licenses/>.
#include <fstream> #include <fstream>
#include <cstdint> #include <cstdint>
// Make sure boost/asio.hpp is included before windows.h.
#include <boost/asio.hpp>
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>
#include <json_spirit/json_spirit.h> #include <json_spirit/json_spirit.h>

2
test/whisperTopic.cpp

@ -20,8 +20,6 @@
*/ */
#include <functional> #include <functional>
// Make sure boost/asio.hpp is included before windows.h.
#include <boost/asio.hpp>
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>
#include <libp2p/Host.h> #include <libp2p/Host.h>

2
third/MainWin.cpp

@ -21,8 +21,6 @@
#include <fstream> #include <fstream>
// Make sure boost/asio.hpp is included before windows.h.
#include <boost/asio.hpp>
#include <boost/algorithm/string.hpp> #include <boost/algorithm/string.hpp>
#include <QtNetwork/QNetworkReply> #include <QtNetwork/QNetworkReply>

Loading…
Cancel
Save