diff options
author | Runxi Yu <me@runxiyu.org> | 2024-08-18 08:00:00 +0800 |
---|---|---|
committer | Runxi Yu <me@runxiyu.org> | 2024-08-18 08:00:00 +0800 |
commit | bc22edda8d6081fed39f219e9b27061de63c6dea (patch) | |
tree | 4b22cfbc8558519ada2972f33fda0da9e1e9d973 | |
parent | types.h -> ibpctypes.h (diff) | |
download | ibpc-master.tar.gz ibpc-master.zip |
This is technically unportable as it's a GCC/Clang extension, but it's
one of the extensions that I personally think make a lot of sense.
I'll use include guards if I really need to port this to a compiler that
doesn't support pragma once, I guess.
-rw-r--r-- | ibpctypes.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ibpctypes.h b/ibpctypes.h index c4f449b..c1ba632 100644 --- a/ibpctypes.h +++ b/ibpctypes.h @@ -18,6 +18,8 @@ * along with this program. If not, see <https://www.gnu.org/licenses/>. */ +#pragma once + #include <sys/types.h> #include <stdbool.h> |