Skip to content

Commit

Permalink
Remove obsolete Boost macros
Browse files Browse the repository at this point in the history
  • Loading branch information
SupSuper committed Mar 17, 2019
1 parent 7cb225b commit caa20a7
Show file tree
Hide file tree
Showing 10 changed files with 2 additions and 28 deletions.
3 changes: 0 additions & 3 deletions framework/apocresources/apocfont.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
#include "framework/trace.h"
#include "library/sp.h"

// Disable automatic #pragma linking for boost - only enabled in msvc and that should provide boost
// symbols as part of the module that uses it
#define BOOST_ALL_NO_LIB
#include <boost/locale.hpp>

namespace OpenApoc
Expand Down
3 changes: 0 additions & 3 deletions framework/configfile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
#include <string>
#include <variant>

// Disable automatic #pragma linking for boost - only enabled in msvc and that should provide boost
// symbols as part of the module that uses it
#define BOOST_ALL_NO_LIB
#include <boost/program_options.hpp>

namespace po = boost::program_options;
Expand Down
3 changes: 0 additions & 3 deletions framework/framework.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@
#include <physfs.h>

// Boost locale for setting the system locale
// Disable automatic #pragma linking for boost - only enabled in msvc and that should provide boost
// symbols as part of the module that uses it
#define BOOST_ALL_NO_LIB
#include <boost/locale.hpp>

using namespace OpenApoc;
Expand Down
3 changes: 1 addition & 2 deletions framework/logger.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#ifdef _WIN32 // Seems to be set even on win64?
#ifdef _WIN32
#define BACKTRACE_WINDOWS
#define _CRT_SECURE_NO_WARNINGS
#define ERROR_DIALOG
#endif

#include "framework/logger.h"
Expand Down
3 changes: 0 additions & 3 deletions framework/serialization/providers/providerwithchecksum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@

#include "dependencies/pugixml/src/pugixml.hpp"

// Disable automatic #pragma linking for boost - only enabled in msvc and that should provide boost
// symbols as part of the module that uses it
#define BOOST_ALL_NO_LIB
#include <boost/crc.hpp>
#include <boost/version.hpp>
#if BOOST_VERSION >= 106600
Expand Down
3 changes: 0 additions & 3 deletions game/state/gametime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@
#include <locale>
#include <sstream>

// Disable automatic #pragma linking for boost - only enabled in msvc and that should provide boost
// symbols as part of the module that uses it
#define BOOST_ALL_NO_LIB
#include <boost/date_time.hpp>

// for my sake
Expand Down
3 changes: 0 additions & 3 deletions game/state/gametime_facet.h
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#pragma once

// Disable automatic #pragma linking for boost - only enabled in msvc and that should provide boost
// symbols as part of the module that uses it
#define BOOST_ALL_NO_LIB
#include <boost/date_time.hpp>
#include <boost/date_time/date_facet.hpp>

Expand Down
4 changes: 0 additions & 4 deletions game/state/savemanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@
#include <algorithm>
#include <sstream>

// Disable automatic #pragma linking for boost - only enabled in msvc and that should provide boost
// symbols as part of the module that uses it
#define BOOST_ALL_NO_LIB

// boost uuid for generating temporary identifier for new save
#include <boost/uuid/uuid_generators.hpp> // generators
#include <boost/uuid/uuid_io.hpp> // conversion to string
Expand Down
4 changes: 1 addition & 3 deletions library/strings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
#include "library/strings_format.h"
#include <cctype>
#include <tuple> // used for std::ignore
// Disable automatic #pragma linking for boost - only enabled in msvc and that should provide boost
// symbols as part of the module that uses it
#define BOOST_ALL_NO_LIB

#include <boost/algorithm/string/predicate.hpp>
#include <boost/locale/message.hpp>

Expand Down
1 change: 0 additions & 1 deletion tools/code_generators/serialization_xml.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include <list>
#include <vector>

#define BOOST_ALL_NO_LIB
#include <boost/program_options.hpp>
#include <boost/version.hpp>
#if BOOST_VERSION >= 106600
Expand Down

0 comments on commit caa20a7

Please sign in to comment.