mirror of
https://github.com/boostorg/python.git
synced 2026-01-21 17:12:22 +00:00
MSVC compatibility
[SVN r8247]
This commit is contained in:
@@ -518,13 +518,17 @@ bool add_capability_number(TypeObjectBase::Capability capability, PyNumberMethod
|
||||
|
||||
bool add_capability_buffer(TypeObjectBase::Capability capability, PyBufferProcs*& dest)
|
||||
{
|
||||
(void)dest; // suppress unused argument warning
|
||||
(void)capability; // likwise
|
||||
#if 0
|
||||
switch(capability)
|
||||
{
|
||||
// nothing defined yet
|
||||
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
return false;
|
||||
}
|
||||
|
||||
} // anonymous namespace
|
||||
|
||||
@@ -319,7 +319,7 @@ namespace detail {
|
||||
typedef std::vector<Holder> Storage;
|
||||
|
||||
public:
|
||||
static const int offset = offsetof(counted_pod, m_data);
|
||||
enum { offset = PY_OFFSETOF(counted_pod, m_data) };
|
||||
|
||||
static shared_pod_manager& instance();
|
||||
~shared_pod_manager();
|
||||
|
||||
Reference in New Issue
Block a user