aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2024-08-18 08:00:00 +0800
committerRunxi Yu <me@runxiyu.org>2024-08-18 08:00:00 +0800
commitbc22edda8d6081fed39f219e9b27061de63c6dea (patch)
tree4b22cfbc8558519ada2972f33fda0da9e1e9d973
parenttypes.h -> ibpctypes.h (diff)
downloadibpc-master.tar.gz
ibpc-master.zip
pragma onceHEADmaster
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.h2
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>