Check for SYS/GL during library init. Reason is that
[AROS.git] / workbench / devs / diskimage / raauto / layout_autoopenlib.c
blob62bb2fafcbd870abf85a76abbc30f7ffe1ef2b84
1 #include <exec/libraries.h>
2 #include <proto/exec.h>
3 #include <stdlib.h>
4 #include "raauto_alerts.h"
6 static CONST TEXT class_name[] = "gadgets/layout.gadget";
7 struct Library * LayoutBase = 0;
8 extern unsigned long _LayoutBaseVer;
10 void _INIT_5_LayoutBase(void)
12 if(!(LayoutBase = OpenLibrary(class_name, _LayoutBaseVer))) {
13 RAAutoClassNotFound(class_name);
14 exit(EXIT_FAILURE);
18 void _EXIT_5_LayoutBase(void)
20 if(LayoutBase)
21 CloseLibrary(LayoutBase);