mirror of
https://github.com/deadw00d/AROS.git
synced 2025-11-23 12:17:41 +00:00
51 lines
1.2 KiB
C
51 lines
1.2 KiB
C
/*
|
|
Copyright (C) 2013-2018, The AROS Development Team. All rights reserved.
|
|
*/
|
|
|
|
#include <proto/exec.h>
|
|
|
|
#define __NOBLIBBASE__
|
|
|
|
#include <proto/locale.h>
|
|
#include <proto/intuition.h>
|
|
|
|
#include "__stdc_intbase.h"
|
|
#include "__optionallibs.h"
|
|
|
|
/* Internal function __libfindandopen will only open a library when it is
|
|
already in the list of open libraries
|
|
*/
|
|
static struct Library *__libfindandopen(const char *libname, int version)
|
|
{
|
|
struct Node *found;
|
|
|
|
Forbid();
|
|
found = FindName(&SysBase->LibList, libname);
|
|
Permit();
|
|
|
|
return (found != NULL) ? OpenLibrary(libname, version) : NULL;
|
|
}
|
|
|
|
#if 0
|
|
int __locale_available(struct StdCIntBase *StdCBase)
|
|
{
|
|
if (StdCBase->StdCLocaleBase == NULL)
|
|
StdCBase->StdCLocaleBase = (struct LocaleBase *)__libfindandopen("locale.library", 0);
|
|
|
|
return StdCBase->StdCLocaleBase != NULL;
|
|
}
|
|
#endif
|
|
|
|
int __intuition_available(struct StdCIntBase *StdCBase)
|
|
{
|
|
if (StdCBase->StdCIntuitionBase == NULL)
|
|
StdCBase->StdCIntuitionBase = (struct IntuitionBase *)__libfindandopen("intuition.library", 0);
|
|
|
|
return StdCBase->StdCIntuitionBase != NULL;
|
|
}
|
|
|
|
int __usergroup_available(struct PosixCIntBase *PosixCBase)
|
|
{
|
|
return 0;
|
|
}
|