Check for SYS/GL during library init. Reason is that
[AROS.git] / workbench / devs / diskimage / raauto / chooser_autoopenlib.c
blob95ba5e100600c280579b7d34f1c07c8c7b4be144
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/chooser.gadget";
7 struct Library * ChooserBase = 0;
8 extern unsigned long _ChooserBaseVer;
10 void _INIT_5_ChooserBase(void)
12 if(!(ChooserBase = OpenLibrary(class_name, _ChooserBaseVer))) {
13 RAAutoClassNotFound(class_name);
14 exit(EXIT_FAILURE);
18 void _EXIT_5_ChooserBase(void)
20 if(ChooserBase)
21 CloseLibrary(ChooserBase);