Function os_getBattLevel from arduino-lmic library.

Hello,
I've used arduino-lmic library for my sensor node Arduino Mini Pro. I would like to implement function os_getBattLevel correct without edit the library files.

There is pieces of code in file /src/lmic/oslmic.h

#ifndef os_getBattLevel
u1_t os_getBattLevel (void);
#endif

and in file /src/lmic/lmic.h

#if !defined(os_getBattLevel)
u1_t os_getBattLevel (void) {
    return MCMD_DEVS_BATT_NOINFO;
}
#endif

When I wrote own function os_getBattLevel and commented code in file /src/lmic/lmic.h, that was working.
But when I wrote macro

#define os_getBattLevel() getBattLevel()

and new own function getBattLevel(), that wasn‘t working.
What is correct implementation?
Thank you.