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