提交freeimage库
This commit is contained in:
parent
f1535d3290
commit
e8137e650c
|
@ -0,0 +1,42 @@
|
||||||
|
#include "../base/HGDef.h"
|
||||||
|
#if defined(HG_CMP_MSC)
|
||||||
|
#include "FreeImage.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(HG_CMP_MSC)
|
||||||
|
|
||||||
|
BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
|
||||||
|
{
|
||||||
|
switch (ul_reason_for_call)
|
||||||
|
{
|
||||||
|
case DLL_PROCESS_ATTACH:
|
||||||
|
FreeImage_Initialise();
|
||||||
|
break;
|
||||||
|
case DLL_THREAD_ATTACH:
|
||||||
|
break;
|
||||||
|
case DLL_THREAD_DETACH:
|
||||||
|
break;
|
||||||
|
case DLL_PROCESS_DETACH:
|
||||||
|
FreeImage_DeInitialise();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
void __attribute__((constructor)) global_load(void);
|
||||||
|
void __attribute__((destructor)) global_unload(void);
|
||||||
|
|
||||||
|
void global_load(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void global_unload(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue