diff options
Diffstat (limited to 'winbuild/unistd.py')
-rw-r--r-- | winbuild/unistd.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/winbuild/unistd.py b/winbuild/unistd.py new file mode 100644 index 0000000..93b9341 --- /dev/null +++ b/winbuild/unistd.py @@ -0,0 +1,16 @@ +# + +import sys +import os + +f1 = open(os.path.join(sys.argv[1],'unistd.h'),'w') + +f1.write("#ifndef UNISTD_H\n") +f1.write("#define UNISTD_H\n") +f1.write("/* this is a dummy file, that is needed for compiling files that are\n") +f1.write(" * generated with flex under Windows 95/NT.\n") +f1.write(" */\n") +f1.write("#if defined(_MSC_VER)\n") +f1.write(" #include <io.h>\n") +f1.write("#endif\n") +f1.write("#endif\n") |