Skip to content

Commit

Permalink
unify DLLMOD_ macros for ms and gnu
Browse files Browse the repository at this point in the history
  • Loading branch information
dougm committed Apr 21, 2011
1 parent 59aeada commit e09ad13
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/os/win32/win32_sigar.c
Original file line number Diff line number Diff line change
Expand Up @@ -380,17 +380,6 @@ static sigar_mpr_t sigar_mpr = {
{ NULL, NULL }
};

#ifdef MSVC
#define DLLMOD_COPY(name) \
memcpy(&(sigar->##name), &sigar_##name, sizeof(sigar_##name))

#define DLLMOD_INIT(name, all) \
sigar_dllmod_init(sigar, (sigar_dll_module_t *)&(sigar->##name), all)

#define DLLMOD_FREE(name) \
sigar_dllmod_free((sigar_dll_module_t *)&(sigar->##name))
#else
/* The GCC compiler doesn't require/accept the ## prefix */
#define DLLMOD_COPY(name) \
memcpy(&(sigar->name), &sigar_##name, sizeof(sigar_##name))

Expand All @@ -399,8 +388,6 @@ static sigar_mpr_t sigar_mpr = {

#define DLLMOD_FREE(name) \
sigar_dllmod_free((sigar_dll_module_t *)&(sigar->name))
#endif


static void sigar_dllmod_free(sigar_dll_module_t *module)
{
Expand Down

0 comments on commit e09ad13

Please sign in to comment.