2
0
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:
Dave Abrahams
2000-11-17 20:25:15 +00:00
parent a3fa57d58f
commit 7aa5e4ae35
2 changed files with 6 additions and 2 deletions

View File

@@ -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

View File

@@ -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();