← Back to team overview

kicad-developers team mailing list archive

Re: Checking in broken code

 

While we're talking about wx-2.6 compatibility, here's a small patch
(in attachment) that is required in Gentoo to compile against it. I'd
be surprised if it was specific to Gentoo only, though. It should only
be applied when wx-2.6 headers and libs are used, thus a wx version
check is required if you include it in the code (in Gentoo it's done
in the installation script).

Denis.
 ------=_Part_58148_3467490.1181929775475 Content-Type: text/x-patch; name=kicad-20070525-wx26.patch; 
charset=ANSI_X3.4-1968
Content-Transfer-Encoding: base64
X-Attachment-Id: f_f2yyevci
Content-Disposition: attachment; filename="kicad-20070525-wx26.patch"

ZGlmZiAtTmFkdXIga2ljYWQtMjAwNzA1MjUub3JpZy9raWNhZC90cmVlcHJqX2RhdGFzLmNwcCBr
aWNhZC0yMDA3MDUyNS53eDI2L2tpY2FkL3RyZWVwcmpfZGF0YXMuY3BwCi0tLSBraWNhZC0yMDA3
MDUyNS5vcmlnL2tpY2FkL3RyZWVwcmpfZGF0YXMuY3BwCTIwMDctMDUtMTQgMDk6MDU6MjQuMDAw
MDAwMDAwICswMjAwCisrKyBraWNhZC0yMDA3MDUyNS53eDI2L2tpY2FkL3RyZWVwcmpfZGF0YXMu
Y3BwCTIwMDctMDYtMTUgMTk6MzM6MzQuMDAwMDAwMDAwICswMjAwCkBAIC0xNzcsNyArMTc3LDcg
QEAKIAlpZiAoIGRlc3ROYW1lID09IEdldEZpbGVOYW1lKCkgKSByZXR1cm47IC8vIFNhbWUgcGxh
Y2UgPz8KIAogCS8vIE1vdmUgdGhlIGZpbGUgb24gdGhlIGRpc2s6Ci0JaWYgKCAhd3hSZW5hbWVG
aWxlKCBHZXRGaWxlTmFtZSgpLCBkZXN0TmFtZSwgZmFsc2UgKSApCisJaWYgKCAhd3hSZW5hbWVG
aWxlKCBHZXRGaWxlTmFtZSgpLCBkZXN0TmFtZSApICkKIAl7CiAJCXd4TWVzc2FnZURpYWxvZygg
bV9QYXJlbnQsIF8oICJVbmFibGUgdG8gbW92ZSBmaWxlIC4uLiAiKSwg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