How to force Visual Studio preprocessor case sensitivity with #includes?

后端 未结 5 1073
一生所求
一生所求 2021-02-14 03:38

If you have a header file named ThisIsAHeaderFile.h, the following will still locate the file in Visual Studio:

#include 
5条回答
  •  夕颜
    夕颜 (楼主)
    2021-02-14 04:33

    You can't, because the Windows file system is itself case-insensitive.

    If you could get into a situation where you had both RICHIE.h and richie.h, it might make sense to control case sensitivity, but you can't.

提交回复
热议问题