mozglue/build/fixcrt.py

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/mozglue/build/fixcrt.py	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,14 @@
     1.4 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.5 +# License, v. 2.0. If a copy of the MPL was not distributed with this
     1.6 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.7 +
     1.8 +from __future__ import with_statement
     1.9 +
    1.10 +with open('crtdll.obj', 'rb') as infile:
    1.11 +  data = infile.read()
    1.12 +  with open('crtdll_fixed.obj', 'wb') as outfile:
    1.13 +    # for Win32
    1.14 +    data = data.replace('__imp__free', '__imp__frex')
    1.15 +    # for Win64
    1.16 +    data = data.replace('__imp_free', '__imp_frex')
    1.17 +    outfile.write(data)

mercurial