Add logm for plain ISO  C99 without compiler extensions.