/* Automatically generated header (sfdc 1.11e)! Do not edit! */ #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ #if defined (__libnix__) __attribute__((section(".dlist___LIB_LIST__"))) void* PaletteBase[2] = { (void*)-1, "gadgets/palette.gadget" }; #elif defined (__AMIGAOS4__) #undef __USE_INLINE__ #define _NO_INLINE #include #include #include #include #include __attribute__((weak)) struct Library * PaletteBase = NULL; __attribute__((weak)) struct PaletteIFace* IPalette = NULL; void __init_Palette(void) __attribute__((constructor)); void __exit_Palette(void) __attribute__((destructor)); void __init_Palette(void) { if (PaletteBase == NULL) { PaletteBase = (struct Library *) IExec->OpenLibrary("palette.library", 0); assert(PaletteBase != NULL); } if (IPalette == NULL) { IPalette = (struct PaletteIFace*) IExec->GetInterface((struct Library*) PaletteBase, "main", 1, NULL); assert(IPalette != NULL); } } void __exit_Palette(void) { IExec->DropInterface((struct Interface*) IPalette); IExec->CloseLibrary((struct Library*) PaletteBase); } #endif #ifdef __cplusplus } #endif /* __cplusplus */