mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 02:45:22 +00:00
THRIFT-4075: better support for headers-only boost with mingw
Client: C++ This closes #1184
This commit is contained in:
parent
e1832c3543
commit
bff044667c
@ -63,7 +63,7 @@ namespace apache {
|
|||||||
namespace thrift {
|
namespace thrift {
|
||||||
namespace transport {
|
namespace transport {
|
||||||
|
|
||||||
DECLSPEC_ALIGN(MEMORY_ALLOCATION_ALIGNMENT) struct TOverlappedWorkItem : public SLIST_ENTRY {
|
struct DECLSPEC_ALIGN(MEMORY_ALLOCATION_ALIGNMENT) TOverlappedWorkItem : public SLIST_ENTRY {
|
||||||
TOverlappedWorkItem();
|
TOverlappedWorkItem();
|
||||||
|
|
||||||
enum action_t {
|
enum action_t {
|
||||||
|
@ -28,8 +28,8 @@
|
|||||||
#error "This is a Windows header only"
|
#error "This is a Windows header only"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// use std::thread in MSVC11 (2012) or newer
|
// use std::thread in MSVC11 (2012) or newer and in MinGW
|
||||||
#if _MSC_VER >= 1700
|
#if (_MSC_VER >= 1700) || defined(__MINGW32__)
|
||||||
#define USE_STD_THREAD 1
|
#define USE_STD_THREAD 1
|
||||||
#else
|
#else
|
||||||
// otherwise use boost threads
|
// otherwise use boost threads
|
||||||
@ -39,8 +39,8 @@
|
|||||||
// Something that defines PRId64 is required to build
|
// Something that defines PRId64 is required to build
|
||||||
#define HAVE_INTTYPES_H 1
|
#define HAVE_INTTYPES_H 1
|
||||||
|
|
||||||
// VS2010 or later has stdint.h
|
// VS2010 or later has stdint.h as does MinGW
|
||||||
#if _MSC_VER >= 1600
|
#if (_MSC_VER >= 1600) || defined(__MINGW32__)
|
||||||
#define HAVE_STDINT_H 1
|
#define HAVE_STDINT_H 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user