提交freeimage库

This commit is contained in:
luoliangyi 2024-05-24 11:10:52 +08:00
parent f1535d3290
commit e8137e650c
7 changed files with 1205 additions and 0 deletions

View File

@ -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

BIN
third_party/freeimage/FreeImage3180.zip vendored Normal file

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.