How to handle a class name conflict when porting old code?

后端 未结 5 1638
情话喂你
情话喂你 2021-01-05 23:04

I\'m trying to port an old library (that doesn\'t use namespaces as far as I can tell) to modern compilers. One of my targets can\'t tell the difference between System::TObj

5条回答
  •  Happy的楠姐
    2021-01-05 23:14

    If you have the source to the library, maybe include a header file at the top of each source where that header file has only:

    #define TObject TMadeUpNameObject
    

提交回复
热议问题