Fix build with MSVC on CE
authorKonstantin Ritt <ritt.ks@gmail.com>
Fri, 13 Feb 2015 20:58:51 +0000 (00:58 +0400)
committerKonstantin Ritt <ritt.ks@gmail.com>
Fri, 13 Feb 2015 20:58:51 +0000 (00:58 +0400)
commit9768e651be0561f07d6f38c3ed8bc5ee04882990
treeb56839251edb726f911ea8cc24e98a0bb9d2288e
parent7888a6b07a9922cedd3e0d235959058e0011357b
Fix build with MSVC on CE

This code is C++ only. There isn't a single C++ compiler that fails to
understand the "inline" keyword, since it's required by C++98. Any
compiler older than C++98 is likely to choke on the template usage
further down, so this isn't necessary.

Moreover, the C++ standard says you cannot define macros.
[lib.macro.names] says "Nor shall such a translation unit define macros
for names lexically identical to keywords." -- technically, it's a
promise that the Standard Library headers won't do it, the wording means
that the entire translation unit won't do it, which implies no source
can do it.

MSVC complains about it:
fatal error C1189: #error : The C++ Standard Library forbids macroizing
keywords. Enable warning C4005 to find the forbidden macro.

Author: Thiago Macieira <thiago.macieira@intel.com>
src/hb-private.hh