aboutsummaryrefslogtreecommitdiff
path: root/src/os.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/os.h')
-rw-r--r--src/os.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/os.h b/src/os.h
index cbecf2c..ca376b7 100644
--- a/src/os.h
+++ b/src/os.h
@@ -1,5 +1,5 @@
/*
- * Copyright © 2024 Michael Smith <mikesmiffy128@gmail.com>
+ * Copyright © 2025 Michael Smith <mikesmiffy128@gmail.com>
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -17,6 +17,10 @@
#ifndef INC_OS_H
#define INC_OS_H
+#ifdef INC_LANGEXT_H // we can't rely on include order!
+#undef noreturn // ugh, this breaks Windows headers. how annoying. temp-undef it
+#endif
+
#include <string.h>
#include <sys/stat.h> // XXX: try abstracting stat() and avoiding ucrt dep here
@@ -239,6 +243,10 @@ bool os_mprot(void *addr, int len, int mode);
*/
void os_randombytes(void *buf, int sz);
+#ifdef INC_LANGEXT_H
+#define noreturn _Noreturn void // HACK: put this back if undef'd above
+#endif
+
#endif
// vi: sw=4 ts=4 noet tw=80 cc=80