X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=platform%2Fposix%2Ffunctions%2F_PDCLIB%2F_PDCLIB_stdinit.c;h=defb303e8f7bf1e0eafdb34a4ff079ac01ce2949;hp=77b5918b7472691a0283f7ad400f9d57af2dc353;hb=276f7e69f80ac53bfb5da5cc24072dd393485106;hpb=4b1f856ea2b21f30b6af8d4cca7129ebc84d3d6f diff --git a/platform/posix/functions/_PDCLIB/_PDCLIB_stdinit.c b/platform/posix/functions/_PDCLIB/_PDCLIB_stdinit.c index 77b5918..defb303 100644 --- a/platform/posix/functions/_PDCLIB/_PDCLIB_stdinit.c +++ b/platform/posix/functions/_PDCLIB/_PDCLIB_stdinit.c @@ -1,5 +1,3 @@ -/* $Id$ */ - /* _PDCLIB_stdinit This file is part of the Public Domain C Library (PDCLib). @@ -348,7 +346,7 @@ static const _PDCLIB_ctype_t global_ctype[] = { { 0x00, 0xFF, 0xFF, 0xFF } }; -extern const struct _PDCLIB_charcodec _PDCLIB_ascii_codec; +extern const struct _PDCLIB_charcodec_t _PDCLIB_ascii_codec; struct _PDCLIB_locale _PDCLIB_global_locale = { ._Codec = &_PDCLIB_ascii_codec, ._Conv = { @@ -387,7 +385,7 @@ struct _PDCLIB_locale _PDCLIB_global_locale = { }; /* Todo: Better solution than this! */ -__attribute__((constructor)) void init_stdio(void) +__attribute__((constructor)) static void init_stdio(void) { _PDCLIB_initclocale( &_PDCLIB_global_locale ); tss_create(&_PDCLIB_locale_tss, (tss_dtor_t) freelocale);