To compile this code I used LCC-WIN32 with the following commandline:

lc -Zp2 -O BlockIndent.c -dll -nounderscores -s

Should compile with any other standart C compiler with just some care taken
of the exported functions list.