just use ANSI C declarations

Change-Id: Iec50f3474b97497c50522eabb4435795b3ba3b56