diff options
author | Neal Norwitz <nnorwitz@gmail.com> | 2008-02-24 07:21:56 (GMT) |
---|---|---|
committer | Neal Norwitz <nnorwitz@gmail.com> | 2008-02-24 07:21:56 (GMT) |
commit | ed0a593a10328b069d2563ef6f00c31e1d02fe59 (patch) | |
tree | 6b038ed58dc55a17fcbc369eba7340be0f68398c /Modules | |
parent | c11cecf3d0f816893f5765a7b5e25d5f4e3fe531 (diff) | |
download | cpython-ed0a593a10328b069d2563ef6f00c31e1d02fe59.zip cpython-ed0a593a10328b069d2563ef6f00c31e1d02fe59.tar.gz cpython-ed0a593a10328b069d2563ef6f00c31e1d02fe59.tar.bz2 |
Get ctypes working on the Alpha (Tru64). The problem was that there
were two module_methods and the one used depended on the order the
modules were loaded. By making the test module_methods static,
it is not exported and the correct version is picked up.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/_ctypes/_ctypes_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_ctypes/_ctypes_test.c b/Modules/_ctypes/_ctypes_test.c index 0d47740..d9e4964 100644 --- a/Modules/_ctypes/_ctypes_test.c +++ b/Modules/_ctypes/_ctypes_test.c @@ -411,7 +411,7 @@ DL_EXPORT(int) unpack_bitfields(struct BITS *bits, char name) return 0; } -PyMethodDef module_methods[] = { +static PyMethodDef module_methods[] = { /* {"get_last_tf_arg_s", get_last_tf_arg_s, METH_NOARGS}, {"get_last_tf_arg_u", get_last_tf_arg_u, METH_NOARGS}, */ |