FreeType “generic” conflict with c++/cx keyword

前端 未结 1 2011
渐次进展
渐次进展 2021-02-20 16:44

I have a problem with putting c++ and c++/cx together. I need to use FreeType library, but they are using \"generic\" name for some variable. I also need to enable VC++ extensio

相关标签:
1条回答
  • 2021-02-20 17:27

    Use preprocessor to rename this keyword temporarily:

    #define generic GenericFromFreeTypeLibrary
    #include .... files from FreeTypeLibrary
    #undef generic
    

    This solution is not very nice but should work.

    0 讨论(0)
提交回复
热议问题