Check for SYS/GL during library init. Reason is that
[AROS.git] / workbench / devs / diskimage / raauto / label_autoopenlib.c
blob41d9c63dddce3608f7e067cd034566592b1eefaa
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[] = "images/label.image";
7 struct Library * LabelBase = 0;
8 extern unsigned long _LabelBaseVer;
10 void _INIT_5_LabelBase(void)
12 if(!(LabelBase = OpenLibrary(class_name, _LabelBaseVer))) {
13 RAAutoClassNotFound(class_name);
14 exit(EXIT_FAILURE);
18 void _EXIT_5_LabelBase(void)
20 if(LabelBase)
21 CloseLibrary(LabelBase);