Welcome to mirror list, hosted at ThFree Co, Russian Federation.

fix_flex.php - github.com/ambrop72/badvpn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: bd026d0bd2290cae260e445030cf9dc55fa3a095 (plain)
1
2
3
4
5
6
7
8
9
10
<?php

$filename = $argv[1];
$contents = file_get_contents($filename);
if ($contents === FALSE) exit(1);
$search = array("<inttypes.h>", "#if defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L");
$replace = array("<stdint.h>", "#if 1");
$contents = str_replace($search, $replace, $contents);
$res = file_put_contents($filename, $contents);
if ($res === FALSE) exit(1);