Another windows include

This commit is contained in:
Nick Mathewson 2018-06-22 13:52:30 -04:00
parent 4b32446a4c
commit 405fa42e8a
2 changed files with 13 additions and 3 deletions

View File

@ -58,9 +58,18 @@ def load_include_rules(fname):
result.addPattern(line)
return result
MDD = "--mdd" in sys.argv[1:]
if MDD:
print(
for dirpath, dirnames, fnames in os.walk("src"):
if ".may_include" in fnames:
rules = load_include_rules(os.path.join(dirpath, RULES_FNAME))
if MDD:
dp = dirpath.replace("src/","")
rules.dump_mdd(dp)
else:
for fname in fnames:
if fname_is_c(fname):
rules.applyToFile(os.path.join(dirpath,fname))

View File

@ -13,6 +13,7 @@
#include <errno.h>
#include <time.h>
#include <string.h>
#include <stdlib.h>
#if !defined(_WIN32)
/** Defined iff we need to add locks when defining fake versions of reentrant