|
31 | 31 | ****/
|
32 | 32 | #pragma once
|
33 | 33 |
|
34 |
| -#if defined(_MSC_VER) && (_MSC_VER >= 1800) |
35 |
| -#include <ppltasks.h> |
36 |
| -namespace pplx = Concurrency; |
37 |
| -#if (_MSC_VER >= 1900) |
38 |
| -#include <concrt.h> |
39 |
| -#ifndef DEV14_EXTENSIBILITY_WRKRND |
40 |
| -#define DEV14_EXTENSIBILITY_WRKRND |
41 |
| -namespace Concurrency { |
42 |
| - namespace extensibility { |
43 |
| - typedef ::std::condition_variable condition_variable_t; |
44 |
| - typedef ::std::mutex critical_section_t; |
45 |
| - typedef ::std::unique_lock< ::std::mutex> scoped_critical_section_t; |
46 |
| - |
47 |
| - typedef ::Concurrency::event event_t; |
48 |
| - typedef ::Concurrency::reader_writer_lock reader_writer_lock_t; |
49 |
| - typedef ::Concurrency::reader_writer_lock::scoped_lock scoped_rw_lock_t; |
50 |
| - typedef ::Concurrency::reader_writer_lock::scoped_lock_read scoped_read_lock_t; |
51 |
| - |
52 |
| - typedef ::Concurrency::details::_ReentrantBlockingLock recursive_lock_t; |
53 |
| - typedef recursive_lock_t::_Scoped_lock scoped_recursive_lock_t; |
54 |
| - } |
55 |
| -} |
56 |
| -#endif // DEV14_EXTENSIBILITY_WRKRND |
57 |
| -#endif // _MSC_VER >= 1900 |
58 |
| -#else // _MSC_VER |
59 |
| -#include "pplx/pplxtasks.h" |
60 |
| -#endif |
61 |
| - |
62 |
| -#include "cpprest/xxpublic.h" |
63 |
| - |
64 | 34 | #ifdef _MS_WINDOWS
|
65 | 35 | #include <cstdint>
|
66 | 36 | #endif
|
67 | 37 |
|
| 38 | +#include "pplx/pplxtasks.h" |
| 39 | +#include "cpprest/xxpublic.h" |
68 | 40 | #include "cpprest/basic_types.h"
|
69 | 41 |
|
70 |
| -#ifndef _CONCRT_H |
71 |
| -#ifndef _LWRCASE_CNCRRNCY |
72 |
| -#define _LWRCASE_CNCRRNCY |
73 |
| -// Note to reader: we're using lower-case namespace names everywhere, but the 'Concurrency' namespace |
74 |
| -// is capitalized for historical reasons. The alias let's us pretend that style issue doesn't exist. |
75 |
| -namespace Concurrency { } |
76 |
| -namespace concurrency = Concurrency; |
77 |
| -#endif |
78 |
| -#endif |
79 |
| - |
80 | 42 | namespace Concurrency { namespace streams
|
81 | 43 | {
|
82 |
| - |
83 | 44 | namespace details
|
84 | 45 | {
|
85 | 46 | /// <summary>
|
|
0 commit comments