From: Tim Peters Date: Sun, 18 Jul 2004 04:20:15 +0000 (+0000) Subject: Changed the "predefinitions" of codec_list and mapping_list from static X-Git-Tag: v2.4a2~215 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0f27166e6ad61cb424e51d643b6d9893c896d938;p=python 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. --- diff --git a/Modules/cjkcodecs/cjkcodecs.h b/Modules/cjkcodecs/cjkcodecs.h index 5fb05a85b2..6fa8a7b1b7 100644 --- a/Modules/cjkcodecs/cjkcodecs.h +++ b/Modules/cjkcodecs/cjkcodecs.h @@ -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)