work around warnings when compiling with C++ and gcc -pedantic
This commit is contained in:
@ -60,9 +60,9 @@ liblammpsplugin_t *liblammpsplugin_load(const char *lib)
|
|||||||
lmp->handle = handle;
|
lmp->handle = handle;
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#define ADDSYM(symbol) lmp->symbol = (void *) GetProcAddress((HINSTANCE) handle, "lammps_" #symbol)
|
#define ADDSYM(symbol) *(void **) (&lmp->symbol) = (void *) GetProcAddress((HINSTANCE) handle, "lammps_" #symbol)
|
||||||
#else
|
#else
|
||||||
#define ADDSYM(symbol) lmp->symbol = dlsym(handle,"lammps_" #symbol)
|
#define ADDSYM(symbol) *(void **) (&lmp->symbol) = dlsym(handle,"lammps_" #symbol)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(LAMMPS_LIB_MPI)
|
#if defined(LAMMPS_LIB_MPI)
|
||||||
|
|||||||
Reference in New Issue
Block a user