Skip to content

Commit 5d4ab4e

Browse files
authored
Merge pull request #1024 from LocutusOfBorg/fix-scons
SCons 4.2.0 no longer has env_cpp11.has_key()
2 parents 91504b6 + 05d1189 commit 5d4ab4e

File tree

35 files changed

+36
-36
lines changed

35 files changed

+36
-36
lines changed

examples/broadcast_server/SConscript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ env_cpp11 = env_cpp11.Clone ()
1313
prgs = []
1414

1515
# if a C++11 environment is available build using that, otherwise use boost
16-
if env_cpp11.has_key('WSPP_CPP11_ENABLED'):
16+
if 'WSPP_CPP11_ENABLED' in env_cpp11:
1717
ALL_LIBS = boostlibs(['system'],env_cpp11) + [platform_libs] + [polyfill_libs]
1818
prgs += env_cpp11.Program('broadcast_server', ["broadcast_server.cpp"], LIBS = ALL_LIBS)
1919
else:

examples/debug_client/SConscript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ env_cpp11 = env_cpp11.Clone ()
1414
prgs = []
1515

1616
# if a C++11 environment is available build using that, otherwise use boost
17-
if env_cpp11.has_key('WSPP_CPP11_ENABLED'):
17+
if 'WSPP_CPP11_ENABLED' in env_cpp11:
1818
ALL_LIBS = boostlibs(['system'],env_cpp11) + [platform_libs] + [polyfill_libs] + [tls_libs]
1919
prgs += env_cpp11.Program('debug_client', ["debug_client.cpp"], LIBS = ALL_LIBS)
2020
else:

examples/debug_server/SConscript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ env_cpp11 = env_cpp11.Clone ()
1313
prgs = []
1414

1515
# if a C++11 environment is available build using that, otherwise use boost
16-
if env_cpp11.has_key('WSPP_CPP11_ENABLED'):
16+
if 'WSPP_CPP11_ENABLED' in env_cpp11:
1717
ALL_LIBS = boostlibs(['system'],env_cpp11) + [platform_libs] + [polyfill_libs]
1818
prgs += env_cpp11.Program('debug_server', ["debug_server.cpp"], LIBS = ALL_LIBS)
1919
else:

examples/dev/SConscript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ env_cpp11 = env_cpp11.Clone ()
1111

1212
prgs = []
1313

14-
if env_cpp11.has_key('WSPP_CPP11_ENABLED'):
14+
if 'WSPP_CPP11_ENABLED' in env_cpp11:
1515
BOOST_LIBS_CPP11 = boostlibs(['unit_test_framework','system','timer','chrono'],env_cpp11) + [platform_libs] + [polyfill_libs]
1616
prgs += env_cpp11.Program('main', ["main.cpp"], LIBS = BOOST_LIBS_CPP11)
1717

examples/echo_client/SConscript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ env_cpp11 = env_cpp11.Clone ()
1313
prgs = []
1414

1515
# if a C++11 environment is available build using that, otherwise use boost
16-
if env_cpp11.has_key('WSPP_CPP11_ENABLED'):
16+
if 'WSPP_CPP11_ENABLED' in env_cpp11:
1717
ALL_LIBS = boostlibs(['system'],env_cpp11) + [platform_libs] + [polyfill_libs] + ['z']
1818
prgs += env_cpp11.Program('echo_client', ["echo_client.cpp"], LIBS = ALL_LIBS)
1919
else:

examples/echo_server/SConscript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ env_cpp11 = env_cpp11.Clone ()
1313
prgs = []
1414

1515
# if a C++11 environment is available build using that, otherwise use boost
16-
if env_cpp11.has_key('WSPP_CPP11_ENABLED'):
16+
if 'WSPP_CPP11_ENABLED' in env_cpp11:
1717
ALL_LIBS = boostlibs(['system'],env_cpp11) + [platform_libs] + [polyfill_libs]
1818
prgs += env_cpp11.Program('echo_server', ["echo_server.cpp"], LIBS = ALL_LIBS)
1919
else:

examples/echo_server_both/SConscript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ env_cpp11 = env_cpp11.Clone ()
1414
prgs = []
1515

1616
# if a C++11 environment is available build using that, otherwise use boost
17-
if env_cpp11.has_key('WSPP_CPP11_ENABLED'):
17+
if 'WSPP_CPP11_ENABLED' in env_cpp11:
1818
ALL_LIBS = boostlibs(['system'],env_cpp11) + [platform_libs] + [polyfill_libs] + [tls_libs]
1919
prgs += env_cpp11.Program('echo_server_both', ["echo_server_both.cpp"], LIBS = ALL_LIBS)
2020
else:

examples/echo_server_tls/SConscript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ env_cpp11 = env_cpp11.Clone ()
1414
prgs = []
1515

1616
# if a C++11 environment is available build using that, otherwise use boost
17-
if env_cpp11.has_key('WSPP_CPP11_ENABLED'):
17+
if 'WSPP_CPP11_ENABLED' in env_cpp11:
1818
ALL_LIBS = boostlibs(['system'],env_cpp11) + [platform_libs] + [polyfill_libs] + [tls_libs]
1919
prgs += env_cpp11.Program('echo_server_tls', ["echo_server_tls.cpp"], LIBS = ALL_LIBS)
2020
else:

examples/external_io_service/SConscript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ env_cpp11 = env_cpp11.Clone ()
1313
prgs = []
1414

1515
# if a C++11 environment is available build using that, otherwise use boost
16-
if env_cpp11.has_key('WSPP_CPP11_ENABLED'):
16+
if 'WSPP_CPP11_ENABLED' in env_cpp11:
1717
ALL_LIBS = boostlibs(['system'],env_cpp11) + [platform_libs] + [polyfill_libs]
1818
prgs += env_cpp11.Program('external_io_service', ["external_io_service.cpp"], LIBS = ALL_LIBS)
1919
else:

examples/iostream_server/SConscript

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ env_cpp11 = env_cpp11.Clone ()
1313
prgs = []
1414

1515
# if a C++11 environment is available build using that, otherwise use boost
16-
if env_cpp11.has_key('WSPP_CPP11_ENABLED'):
16+
if 'WSPP_CPP11_ENABLED' in env_cpp11:
1717
ALL_LIBS = boostlibs(['system'],env_cpp11) + [platform_libs] + [polyfill_libs]
1818
prgs += env_cpp11.Program('iostream_server', ["iostream_server.cpp"], LIBS = ALL_LIBS)
1919
else:

0 commit comments

Comments
 (0)