diff options
Diffstat (limited to 'src/u8c/init.c')
-rw-r--r-- | src/u8c/init.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/u8c/init.c b/src/u8c/init.c index 0b8a100..3769109 100644 --- a/src/u8c/init.c +++ b/src/u8c/init.c @@ -13,15 +13,17 @@ If not, see <https://www.gnu.org/licenses/>. */ -# include "dat.h" +# if !defined(__STDC_UTF_32__) +# error UTF-32 is required. +# endif +# include "intern.h" # include <setjmp.h> # include <stdbool.h> # include <stddef.h> # include <stdint.h> -# include <u8c/errtyp.h> -# include <u8c/init.h> -# include <u8c/seterr.h> -# include <u8c/u32cp.h> +# include <u8c/err.h> +# include <u8c/main.h> +# include <u8c/u32.h> # if defined(u8c_bethrdsafe) # include <threads.h> # endif @@ -37,6 +39,9 @@ bool u8c_init() { if(mtx_init(&u8c_dat.fmtlock,mtx_plain) == thrd_error) { return true; } + if(mtx_init(&u8c_dat.outlock,mtx_plain) == thrd_error) { + return true; + } # endif /* Set default error message: */ u8c_dat.err = NULL; |