mirror of
https://github.com/mirror/tinycc.git
synced 2024-12-28 04:00:06 +08:00
30fd24abd4
pragma once can now be used with test.h ./test.h and other references to the same file just like gcc/clang. On linux we can use stat and st_ino to check for the same file. On windows the st_ino does not work so we calculate a file hash if the size of the file differs and then compare the hash.
3 lines
51 B
C
3 lines
51 B
C
#pragma once
|
|
printf ("counter %d\n", __COUNTER__);
|