I use MinGW or MSYS to develop my program, I want to make my program behave slightly differently when running on MinGW(or MSYS) shell than what it does when running on CMD.
This requires the run-time ability to check if my program is running on MinGW(or MSYS) shell, I would like to know if there is any way to do so? Thanks!
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…