hal: fix the compile error due to undefined macros

compile errors due to undefined macros on other platforms

Change-Id: I21278ddcb7ac53aacb3b3643d9236486a76533e5
1 file changed