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