mirror of https://github.com/python/cpython
Changed the "predefinitions" of codec_list and mapping_list from static
to extern. It's not legal C to say static whatever[]; because the size isn't given. Presumably this is a gcc extension.
This commit is contained in:
parent
d0bcf351ff
commit
0f27166e6a
|
@ -57,8 +57,8 @@ struct pair_encodemap {
|
|||
DBCHAR code;
|
||||
};
|
||||
|
||||
static const MultibyteCodec codec_list[];
|
||||
static const struct dbcs_map mapping_list[];
|
||||
extern const MultibyteCodec codec_list[];
|
||||
extern const struct dbcs_map mapping_list[];
|
||||
|
||||
#define CODEC_INIT(encoding) \
|
||||
static int encoding##_codec_init(const void *config)
|
||||
|
|
Loading…
Reference in New Issue