anjasoleil0
New member
- Messages
- 77
- Points
- 0
Hi, I'm using the latest git from Hercules as of Nov 7 2014
Here's what I get when I recompile
Here's my HPMHooking.H
and the HPMHooking.c (lines 183 to 207)
Any thoughts? Thanks in advance!
-Anjo
Here's what I get when I recompile
[HPMHooking.H]
Error 1 error C2016: C requires that a struct or union has at least one (line 8)
Error 2 error C2016: C requires that a struct or union has at least one (line 11)
Error 3 error C2016: C requires that a struct or union has at least one (line 14)
Error 4 error C2059: syntax error : '}' (line 8)
[SIZE=14.6666669845581px][HPMHooking.c][/SIZE]
[SIZE=14.6666669845581px]Warning[/SIZE][SIZE=14.6666669845581px] [/SIZE][SIZE=14.6666669845581px]5[/SIZE][SIZE=14.6666669845581px] [/SIZE][SIZE=14.6666669845581px]warning C4034: sizeof returns 0[/SIZE][SIZE=14.6666669845581px] [/SIZE][SIZE=14.6666669845581px](line 185)[/SIZE]
Here's my HPMHooking.H
// Copyright © Hercules Dev Team, licensed under GNU GPL.
// See the LICENSE file
//
// NOTE: This file was auto-generated and should never be manually edited,
// as it will get overwritten.
struct {
} list;
struct {
} count;
struct {
} source;
and the HPMHooking.c (lines 183 to 207)
void HPM_HP_load(void) {
#include HPM_POINTS_INCLUDE
int i, len = ARRAYLENGTH(HookingPoints), idx = 0;
memset(&HPMHooks,0,sizeof(struct HPMHooksCore));
hp_db = strdb_alloc(DB_OPT_BASE|DB_OPT_DUP_KEY|DB_OPT_RELEASE_DATA, HookingPointsLenMax);
for(i = 0; i < len; i++) {
struct HookingPointData *hpd = NULL;
CREATE(hpd, struct HookingPointData, 1);
memcpy(hpd, &HookingPoints, sizeof(struct HookingPointData));
hpd->idx = idx;
idx += 2;
strdb_put(hp_db, HookingPoints.name, hpd);
HPMHooks.data.total++;
}
#include HPM_SOURCES_INCLUDE
}
Any thoughts? Thanks in advance!
-Anjo