libxml2: copy the xml2-config to the crosstoolsdir and patch the paths in the native...
[AROS-Contrib.git] / vpdf / system / init.c
blobeed65cd1fa3c55d363f34d9f632440e78c56b75b
2 #include <stdlib.h>
3 #include <stdio.h>
5 #include <proto/exec.h>
6 #include <datatypes/datatypes.h>
7 #include <cybergraphx/cybergraphics.h>
8 #include <proto/cybergraphics.h>
10 #include "system.h"
11 #include "functions.h"
12 #include "timer.h"
13 #if defined(__PPC__)
14 #include "altivec.h"
15 #endif
16 #include "memory.h"
18 struct Library *DataTypesBase;
20 void ExitSystem(void)
22 if (CyberGfxBase)
23 CloseLibrary(CyberGfxBase);
25 if (DataTypesBase)
26 CloseLibrary(DataTypesBase);
30 void InitSystem( int argc , char *argv[] )
32 CyberGfxBase = OpenLibrary("cybergraphics.library", 0);
33 DataTypesBase = OpenLibrary("datatypes.library", 0);
34 ParamsInit(argc, argv);
35 TimerInit();
36 #if defined(__MORPHOS__)
37 AltivecInit();
38 MemoryInit();
39 #endif
40 ConversionInit();
42 atexit(&ExitSystem);