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