summaryrefslogtreecommitdiff
path: root/src/stdlib/_stdlib.h
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2024-06-05 15:07:06 -0400
committerJakob Kaivo <jkk@ung.org>2024-06-05 15:07:06 -0400
commit1161633db54ce8fd1180649f52909390a2986213 (patch)
tree81eb6390d21e2ad435595f534664121b181a5bb5 /src/stdlib/_stdlib.h
parent66d9ce2cdab4e989e7b4fbab17ba7f4aa4a4af70 (diff)
rename all per-header internal structs to __<header>_h
Diffstat (limited to 'src/stdlib/_stdlib.h')
-rw-r--r--src/stdlib/_stdlib.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/stdlib/_stdlib.h b/src/stdlib/_stdlib.h
index d5f89b09..64e64abd 100644
--- a/src/stdlib/_stdlib.h
+++ b/src/stdlib/_stdlib.h
@@ -53,7 +53,7 @@ static int __safe_compar(int (*compar)(const void *, const void *), const void *
#include "__constraint_info.h"
void abort_handler_s(const char * restrict msg, void * restrict ptr, errno_t error);
-struct __stdlib {
+extern struct __stdlib_h {
struct atexit {
int nfns;
void (*fns[32])(void);
@@ -64,9 +64,7 @@ struct __stdlib {
unsigned int rand;
constraint_handler_t constraint_handler;
char **environ;
-};
-
-extern struct __stdlib __stdlib;
+} __stdlib_h;
#ifdef _POSIX_SOURCE
extern char **environ;